MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stateObController.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef stateObController_H_
10 #define stateObController_H_
11 
12 #include "stateObserver.h"
13 
14 #include <lgrCmds/lgrCommand.h>
16 
17 namespace MAKLogger
18 {
19  class DtCommandInterface;
20  class DtCommandDefinition;
21  class DtStateObserverModel;
22  class DtStateObserverView;
23 
27  {
28  public:
29 
31 
34 
36  virtual ~DtStateObserverController();
37 
39  void init(DtStateObserverModel* model,DtStateObserverView* view);
40 
44  void requestUpdate();
45 
47  void update();
48 
49  void updateView(const DtStateObserverModel*);
50  void activateView();
51  void deactivateView();
52  void connectToLogger();
53  void disconnectFromLogger();
54 
55 
56  public:
57 
58  static MAKLogger::DtCommandDefinition defineRequestUpdateCommand();
59 
60  protected:
61 
62  MAKLogger::DtResponse createUpdateResponse(const DtStateObserverModel*);
63  MAKLogger::DtResponse createActivateResponse();
64  MAKLogger::DtResponse createDeactivateResponse();
65 
66  void decodeCommand(MAKLogger::DtCommand);
67 
68  MAKLogger::DtCommand createRequestUpdateCommand();
69  void receiveUpdateResponse(MAKLogger::DtResponse);
70  void receiveActivateResponse(MAKLogger::DtResponse);
71  void receiveDeactivateResponse(MAKLogger::DtResponse);
72 
78  };
79 
80 }
81 
82 #endif
The logger command which contains the command type and its parameters.
Definition: lgrCommand.h:110
The command type structure.
Definition: lgrCommand.h:29
bool myWaitingFlag
Definition: stateObController.h:73
The implementation of the system logic of the State Observer.
Definition: stateObModel.h:30
The base class for command interface which allows an interface to send and receive commands...
Definition: lgrInterface.h:33
MAKLogger::DtCommandInterface * myCommandInterface
Definition: stateObController.h:77
The DtStateObserverView represents the view for the state observer which is part of a standard Model-...
Definition: stateObView.h:31
The implementation of the control logic for the state observer.
Definition: stateObController.h:26
The definition of a command and it&#39;s parameters.
Definition: lgrRuntimeCommandFactory.h:40
DtStateObserverView * myView
Definition: stateObController.h:75
Contains MAKLogger::DtLgrCommandType and MAKLogger::DtCommand classes.
static MAKLogger::DtLgrCommandType theCommandType
Definition: stateObController.h:30
bool myConnectedToLogger
Definition: stateObController.h:74
#define DT_DLL_STATEOBSERVER
Definition: stateObserver.h:19
Contains the IMPORT/EXPORT macros.
std::shared_ptr< const DtCommand > DtResponse
Definition: lgrCommand.h:175
Contains MAKLogger::DtCommandDispatcher class.
DtStateObserverModel * myModel
Definition: stateObController.h:76

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)