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

observer interface for the DMI More...

#include <EVCStateMachine.h>

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

Public Member Functions

 CDMIObserver (oETCS::DF::CEVCStateMachine *const pStateMachine) throw ()
 general constructor
virtual void Detached ()=0 throw ()
 notifies an observer about it was detached by the EVC state machine
virtual void Update ()=0 throw ()
 updates the observer representation

Protected Attributes

oETCS::DF::CEVCStateMachine *const m_pStateMachine
 pointer to the related state machine

Detailed Description

observer interface for the DMI

Must be reimplemented by any concrete observer.

Definition at line 1493 of file EVCStateMachine.h.

Constructor & Destructor Documentation

oETCS::DF::CDMIObserver::CDMIObserver ( oETCS::DF::CEVCStateMachine *const  pStateMachine) throw ()

general constructor

Attaches the concrete obsever to the EVC state machine.

Parameters
[in]pStateMachinepointer to the related state machine

Definition at line 1608 of file EVCStateMachine.cpp.

Member Function Documentation

virtual void oETCS::DF::CDMIObserver::Detached ( ) throw ()
pure virtual

notifies an observer about it was detached by the EVC state machine

Implemented in oETCS::DF::CDMIQWidget.

virtual void oETCS::DF::CDMIObserver::Update ( ) throw ()
pure virtual

updates the observer representation

Implemented in oETCS::DF::CDMIQWidget.

Member Data Documentation

oETCS::DF::CEVCStateMachine* const oETCS::DF::CDMIObserver::m_pStateMachine
protected

pointer to the related state machine

Definition at line 1526 of file EVCStateMachine.h.

Referenced by oETCS::DF::CDMIQWidget::UpdateSlot().


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/.