lgrRecordCommandFactory.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 
00010 #ifndef lgrRecordCommandFactory_H_
00011 #define lgrRecordCommandFactory_H_
00012 
00013 #include "lgrCore.h"
00014 #include "lgrCommand.h"
00015 
00016 class DtString;
00017 
00018 namespace MAKLogger
00019 {
00020    class DtMessageBuffer;
00021    class DtCommandDefinition;
00022 
00025    class DT_DLL_LGRCORE DtLgrRecordCommandFactory
00026    {
00027    private:
00028       DtLgrRecordCommandFactory();
00029 
00030    public:
00031 
00033       static const DtLgrCommandType theCommandType;
00034       
00036       DT_FACTORY_COMMAND_EXT(1,NewFile,
00037          (const DtString& filename,bool overwrite, bool constructFilePathAndName),
00038          (const DtCommand& command,DtString& filename,bool& overwrite, bool& constructFilePathAndName))
00039       
00040       
00041       DT_FACTORY_COMMAND_EXT(2,CloseFile,
00042          (),
00043          (const DtCommand&))
00044 
00045       
00046       DT_FACTORY_COMMAND_EXT(4,CancelRecording,
00047          (),
00048          (const DtCommand&))
00049 
00051       DT_FACTORY_COMMAND_EXT(5,Record,
00052          (bool multipleFiles),
00053          (const DtCommand&,bool& multipleFiles))
00054 
00056       DT_FACTORY_COMMAND_EXT(6,Pause,
00057          (),
00058          (const DtCommand&))
00059             
00061       DT_FACTORY_COMMAND_EXT(7,Unpause,
00062          (),
00063          (const DtCommand&))
00064       
00066       DT_FACTORY_COMMAND_EXT(8,Stop,
00067          (bool closeAndOpenForPlayback),
00068          (const DtCommand&,bool& closeAndOpenForPlayback))     
00069 
00071       DT_FACTORY_COMMAND_EXT(9,StopCondition,
00072          (int cond,bool close),
00073          (const DtCommand&,int& cond, bool& close))
00074 
00076       DT_FACTORY_COMMAND_EXT(10,StopDuration,
00077          (DtAbsoluteTime duration),
00078          (const DtCommand&,DtAbsoluteTime&))
00079 
00081       DT_FACTORY_COMMAND_EXT(11,StopSize,
00082          (DtU64 size),
00083          (const DtCommand&,DtU64& size))
00084 
00086       DT_FACTORY_COMMAND_EXT(12,SetCheckpointParameters,
00087          (int policy, int size, int count,DtAbsoluteTime time),
00088          (const DtCommand&, int& policy, int& size,int& count,
00089             DtAbsoluteTime& time))
00090 
00092       DT_FACTORY_COMMAND_EXT(13,SetPauseOnRecordAs,
00093          (bool record),
00094          (const DtCommand&, bool& record))
00095 
00097       DT_FACTORY_COMMAND_EXT(14,SaveRecordedData,
00098          (const DtString& filename,bool sinceLastSaveData, 
00099             double outputDuration, DtMessageBuffer*),
00100          (const DtCommand&, DtString& filename,bool& sinceLastSaveData,
00101             double& outputDuration, DtMessageBuffer*&))
00102 
00105       DT_FACTORY_COMMAND_EXT(15,SaveRecordedDataFinished,
00106          (bool success,const DtString& message),
00107          (const DtCommand&, bool& success,DtString& message))
00108 
00110       DT_FACTORY_COMMAND_EXT(16,SetRecordToMultipleFilesSettings,
00111          (double duration,const DtString& namingConvention),
00112          (const DtCommand&, double& duration,DtString& namingConvention))
00113 
00115       DT_FACTORY_COMMAND_EXT(17,RecordToMultipleFiles,
00116          (const DtString& fileName),
00117          (const DtCommand&, DtString& fileName))
00118       
00120       DT_FACTORY_RESPONSE_EXT(-1,NewFileOpened,
00121          (const DtString& filename),
00122          (DtResponse response, DtString& filename ))
00123 
00125       DT_FACTORY_RESPONSE_EXT(-2,NewFileFailed,
00126          (const DtString& reason),
00127          (DtResponse response, DtString& reason ))
00128 
00130       DT_FACTORY_RESPONSE_EXT(-3,FileClosed,
00131          (),
00132          (DtResponse))
00133 
00135       DT_FACTORY_RESPONSE_EXT(-10,RecordingChanged,
00136          (bool recordingState),
00137          (DtResponse response,bool& recordingState ))
00138 
00140       DT_FACTORY_RESPONSE_EXT(-11,RecordingPausedChanged,
00141          (bool recordingState),
00142          (DtResponse response, bool& recordingState ))
00143 
00144       DT_FACTORY_RESPONSE_EXT(-12,PauseOnRecordAsChanged,
00145          (bool record),
00146          (DtResponse response, bool& record))
00147 
00148       DT_FACTORY_RESPONSE_EXT(-13,CheckpointPolicyChanged,
00149          (int policy,int size,int count, DtAbsoluteTime time),
00150          (DtResponse,int& policy,int& size,int& count,DtAbsoluteTime& time))
00151 
00152       DT_FACTORY_RESPONSE_EXT(-14,FileEmptyChanged,
00153          (),
00154          (DtResponse))
00155 
00156       DT_FACTORY_RESPONSE_EXT(-15,RecordToMultipleFilesSettingsChanged,
00157          (double duration,const DtString& namingConvention),
00158          (DtResponse, double& duration,DtString& namingConvention))
00159 
00160    public:
00161 
00163       static const char* commandToString(int commandId);
00164 
00166       static const char* responseToString(int responseId);
00167 
00168    };
00169 
00170 }
00171 
00172 #endif

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)