openETCS
case study for the European Train Control System developed for the authors dissertation
Public Slots | Public Member Functions | Public Attributes | Private Attributes | List of all members
oETCS::DF::CBaliseDeviceOut Class Reference

base class for all balise devices for outgoing messages More...

#include <PlatformSpecificClientsMOC.h>

Inheritance diagram for oETCS::DF::CBaliseDeviceOut:
Inheritance graph
Collaboration diagram for oETCS::DF::CBaliseDeviceOut:
Collaboration graph

Public Slots

void Error (const QString &ErrorMessage)
 informs the stub about an error ocurred in the PS part

Public Member Functions

 CBaliseDeviceOut (const ::std::vector< oETCS::DF::CTelegram * > &Telegrams, const bool &bUsePS=false) throw ()
 general constructor
 CBaliseDeviceOut (const CBaliseDeviceOut &Source)
 deleted copy constructor
CBaliseDeviceOutoperator= (const CBaliseDeviceOut &Source)
 deleted assigment operator
virtual void SendTelegram () throw (::oETCS::DF::Error::CException)
 executes the sending of corresponding telegram
virtual ~CBaliseDeviceOut () throw ()
 destructor

Public Attributes

const bool m_bUsePlatformSpecific
 flag for the usage of a platform specific implmentation via D-Bus

Private Attributes

::std::vector< ::std::string > m_ErrorStack
 stack with error messages from the platform specific adaptor implementation
::std::recursive_mutex m_Mutex
 muteable exclusion object
oETCS::DF::IBaliseDeviceOut * m_pProxy
 pointer to the proxy object
const ::std::vector
< oETCS::DF::CTelegram * > 
m_Telegrams
 vector with pointers to all connected telegrams

Detailed Description

base class for all balise devices for outgoing messages

Definition at line 193 of file PlatformSpecificClientsMOC.h.

Constructor & Destructor Documentation

oETCS::DF::CBaliseDeviceOut::CBaliseDeviceOut ( const ::std::vector< oETCS::DF::CTelegram * > &  Telegrams,
const bool &  bUsePS = false 
) throw ()
explicit

general constructor

Parameterises the the communication incoming device with all constant members.

Parameters
[in]Telegramsvector with pointers to all telegrams supported
[in]bUsePSoptional flag for the usage of the platform specifc implementation via D-Bus

Definition at line 285 of file PlatformSpecificClientsMOC.cpp.

oETCS::DF::CBaliseDeviceOut::CBaliseDeviceOut ( const CBaliseDeviceOut Source)

deleted copy constructor

oETCS::DF::CBaliseDeviceOut::~CBaliseDeviceOut ( ) throw ()
virtual

destructor

Definition at line 338 of file PlatformSpecificClientsMOC.cpp.

References m_bUsePlatformSpecific, and m_pProxy.

Member Function Documentation

void oETCS::DF::CBaliseDeviceOut::Error ( const QString &  ErrorMessage)
slot

informs the stub about an error ocurred in the PS part

Remarks
this method should be called by a platform specific implementation
Parameters
[in]ErrorMessagetextual description of the error
CBaliseDeviceOut& oETCS::DF::CBaliseDeviceOut::operator= ( const CBaliseDeviceOut Source)

deleted assigment operator

void oETCS::DF::CBaliseDeviceOut::SendTelegram ( ) throw (::oETCS::DF::Error::CException)
virtual

executes the sending of corresponding telegram

Remarks
this method should be reimplemented by any inheriting class

Definition at line 355 of file PlatformSpecificClientsMOC.cpp.

References m_bUsePlatformSpecific, m_ErrorStack, m_Mutex, m_pProxy, and m_Telegrams.

Member Data Documentation

const bool oETCS::DF::CBaliseDeviceOut::m_bUsePlatformSpecific

flag for the usage of a platform specific implmentation via D-Bus

Definition at line 257 of file PlatformSpecificClientsMOC.h.

Referenced by SendTelegram(), and ~CBaliseDeviceOut().

::std::vector< ::std::string > oETCS::DF::CBaliseDeviceOut::m_ErrorStack
private

stack with error messages from the platform specific adaptor implementation

Definition at line 266 of file PlatformSpecificClientsMOC.h.

Referenced by SendTelegram().

::std::recursive_mutex oETCS::DF::CBaliseDeviceOut::m_Mutex
private

muteable exclusion object

Definition at line 287 of file PlatformSpecificClientsMOC.h.

Referenced by SendTelegram().

oETCS::DF::IBaliseDeviceOut* oETCS::DF::CBaliseDeviceOut::m_pProxy
private

pointer to the proxy object

Definition at line 280 of file PlatformSpecificClientsMOC.h.

Referenced by SendTelegram(), and ~CBaliseDeviceOut().

const ::std::vector< oETCS::DF::CTelegram* > oETCS::DF::CBaliseDeviceOut::m_Telegrams
private

vector with pointers to all connected telegrams

Definition at line 273 of file PlatformSpecificClientsMOC.h.

Referenced by SendTelegram().


The documentation for this class was generated from the following files:

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.