lgrTimeCommandFactory.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef lgrTimeCommandFactory_H_
00010 #define lgrTimeCommandFactory_H_
00011 
00012 #include "lgrCore.h"
00013 #include "lgrCommand.h"
00014 
00015 namespace MAKLogger
00016 {
00017    class DtAbsoluteTime;
00018    class DtCommandDefinition;
00019 
00022    class DT_DLL_LGRCORE DtLgrTimeCommandFactory
00023    {
00024 
00025    private:
00027       DtLgrTimeCommandFactory();
00028 
00029    public:
00031       static const DtLgrCommandType theCommandType;
00032 
00033    public:
00034       static const DtLgrCommandId Response_CurrentTimeChanged   = -1;
00035       static const DtLgrCommandId Response_StartStopTimesChanged  = -2;
00036       static const DtLgrCommandId Response_FirstLastTimesChanged = -3;
00037 
00039       static DtResponse createStartStopTimesChangedResponse(
00040          DtAbsoluteTime startTime,DtAbsoluteTime stopTime);
00042       static void decodeStartStopTimesChangedResponse(DtResponse response,
00043          DtAbsoluteTime& startTime,DtAbsoluteTime& stopTime);
00044 
00046       static DtResponse createCurrentTimeChangedResponse(
00047          DtAbsoluteTime currentTime);
00049       static void decodeCurrentTimeChangedResponse(DtResponse response,
00050          DtAbsoluteTime& currentTime);
00051 
00053       static DtResponse createFirstLastTimesChangedResponse(
00054          DtAbsoluteTime firstTime,DtAbsoluteTime lastTime);
00056       static void decodeFirstLastTimesChangedResponse(DtResponse response,
00057          DtAbsoluteTime& firstTime,DtAbsoluteTime& stopTime);
00058 
00060       static const char* commandToString(int commandId);
00061 
00063       static const char* responseToString(int responseId);
00064 
00065    };
00066 }
00067 
00068 #endif
00069 

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)