MAK Data Logger API Documentation for HLA
lgrTimeCommandFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrTimeCommandFactory_H_
10 #define lgrTimeCommandFactory_H_
11 
12 #include "lgrCore.h"
13 #include "lgrCommand.h"
14 
15 namespace MAKLogger
16 {
17  class DtAbsoluteTime;
18  class DtCommandDefinition;
19 
23  {
24 
25  private:
28 
29  public:
32 
33  public:
34  static const DtLgrCommandId Response_CurrentTimeChanged = -1;
35  static const DtLgrCommandId Response_StartStopTimesChanged = -2;
36  static const DtLgrCommandId Response_FirstLastTimesChanged = -3;
37 
39  static DtResponse createStartStopTimesChangedResponse(
40  DtAbsoluteTime startTime,DtAbsoluteTime stopTime);
42  static void decodeStartStopTimesChangedResponse(DtResponse response,
43  DtAbsoluteTime& startTime,DtAbsoluteTime& stopTime);
44 
46  static DtResponse createCurrentTimeChangedResponse(
47  DtAbsoluteTime currentTime);
49  static void decodeCurrentTimeChangedResponse(DtResponse response,
50  DtAbsoluteTime& currentTime);
51 
53  static DtResponse createFirstLastTimesChangedResponse(
54  DtAbsoluteTime firstTime,DtAbsoluteTime lastTime);
56  static void decodeFirstLastTimesChangedResponse(DtResponse response,
57  DtAbsoluteTime& firstTime,DtAbsoluteTime& stopTime);
58 
60  static const char* commandToString(int commandId);
61 
63  static const char* responseToString(int responseId);
64 
65  };
66 }
67 
68 #endif
69 

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)