Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
MAKLogger::DtStateObserverController Class Reference

The implementation of the control logic for the state observer. More...

+ Collaboration diagram for MAKLogger::DtStateObserverController:

List of all members.

Public Member Functions

 DtStateObserverController ()
 CTOR.
virtual ~DtStateObserverController ()
 DTOR.
void init (DtStateObserverModel *model, DtStateObserverView *view)
 Must initialize with model and view.
void requestUpdate ()
 Request an update and block until a response has been received.
void update ()
 Update responses.
void updateView (const DtStateObserverModel *)
void activateView ()
void deactivateView ()
void connectToLogger ()
void disconnectFromLogger ()

Static Public Member Functions

static
MAKLogger::DtCommandDefinition 
defineRequestUpdateCommand ()

Static Public Attributes

static MAKLogger::DtLgrCommandType theCommandType

Protected Member Functions

MAKLogger::DtResponse createUpdateResponse (const DtStateObserverModel *)
MAKLogger::DtResponse createActivateResponse ()
MAKLogger::DtResponse createDeactivateResponse ()
void decodeCommand (MAKLogger::DtCommand)
MAKLogger::DtCommand createRequestUpdateCommand ()
void receiveUpdateResponse (MAKLogger::DtResponse)
void receiveActivateResponse (MAKLogger::DtResponse)
void receiveDeactivateResponse (MAKLogger::DtResponse)

Protected Attributes

bool myWaitingFlag
bool myConnectedToLogger
DtStateObserverViewmyView
DtStateObserverModelmyModel
MAKLogger::DtCommandInterfacemyCommandInterface

Detailed Description

The implementation of the control logic for the state observer.

This is the controller module of a Model-View-Controller pattern.


Member Function Documentation

void MAKLogger::DtStateObserverController::requestUpdate ( )

Request an update and block until a response has been received.

The front end should only call these functions. This function should be called in the front end loop.


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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)