lgrEditorCommandFactory.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 lgrEditorCommandFactory_H_
00010 #define lgrEditorCommandFactory_H_
00011 
00012 #include "lgrCore.h"
00013 #include "lgrCommand.h"
00014 
00015 #include <memory>
00016 
00017 class DtString;
00018 
00019 namespace MAKLogger
00020 {
00021    
00022    class DtAbsoluteTime;
00023    class DtCommandDefinition;
00024    class DtLgrEditorThread;
00025    class DtLgrPacketPrinter;   
00026    class DtRelativeTime;   
00027 
00030    class DT_DLL_LGRCORE DtLgrEditorCommandFactory
00031    {
00032    private:
00033       DtLgrEditorCommandFactory();
00034 
00035    public:
00036 
00038       static const DtLgrCommandType theCommandType;
00039 
00040       DT_FACTORY_COMMAND_EXT(1,ExportFile,
00041          (const DtString& fileFormat, const DtString& filename, 
00042             bool checkpoint,bool openAfterExport
00043          ),
00044          (const DtCommand& command,DtString& fileFormat, DtString& filename,
00045             bool& checkpoint, bool& openAfterExport 
00046          ))
00047 
00048       DT_FACTORY_COMMAND_EXT(2,ExportSection,
00049          (const DtString& fileFormat, const DtString& filename,
00050             const DtAbsoluteTime& start, const DtAbsoluteTime& end, 
00051             const DtRelativeTime& offset, bool checkpoint, bool openAfterExport
00052          ),
00053          (const DtCommand& command,DtString& fileFormat, DtString& filename,
00054             DtAbsoluteTime& start, DtAbsoluteTime& end,DtRelativeTime& offset,
00055             bool& checkpoint, bool& openAfterExport 
00056          ))
00057 
00058       DT_FACTORY_COMMAND_EXT(3,ClearSection,
00059          (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
00060          (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
00061 
00062       DT_FACTORY_COMMAND_EXT(4,CutSection,
00063          (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
00064          (const DtCommand& command,DtAbsoluteTime& start, DtAbsoluteTime& end))
00065 
00066       DT_FACTORY_COMMAND_EXT(5,AddExportType,
00067          (const DtString& fileFormat,const DtString& fileFilter, 
00068             bool offsetData, bool generateData,int exportType,
00069             std::auto_ptr<DtLgrPacketPrinter> printer),
00070          (const DtCommand& command,DtString& fileFormat,DtString& fileFilter,
00071             bool& offsetData, bool& generateData, int& exportType,
00072             DtLgrPacketPrinter*& printer))
00073 
00074       DT_FACTORY_COMMAND_EXT(6,MergeInFile,
00075          (const DtString& filename, const DtRelativeTime& offset),
00076          (const DtCommand& command,DtString& filename,DtRelativeTime& offset))
00077 
00078       DT_FACTORY_COMMAND_EXT(7,AppendFileToEnd,
00079          (const DtString& filename),
00080          (const DtCommand& command, DtString& filename))
00081 
00082       DT_FACTORY_COMMAND_EXT(8,PrefixFileToStart,
00083          (const DtString& filename),
00084          (const DtCommand& command, DtString& filename))
00085 
00086       DT_FACTORY_COMMAND_EXT(9,TrimStart,
00087          (),
00088          (const DtCommand& command))
00089 
00090       DT_FACTORY_COMMAND_EXT(10,OffsetTime,
00091          (const DtRelativeTime& offset),
00092          (const DtCommand& command,DtRelativeTime& offset))
00093 
00094       DT_FACTORY_COMMAND_EXT(11,ConvertFile,
00095          (),
00096          (const DtCommand& command))
00097 
00098       DT_FACTORY_COMMAND_EXT(12,FinishEditorThread,
00099          (DtLgrEditorThread* thread),         
00100          (const DtCommand& command,DtLgrEditorThread*& thread))
00101 
00102       //Responses
00103 
00104       DT_FACTORY_RESPONSE_EXT(-1,ExportTypeAdded,
00105          (const DtString& fileFormat, const DtString& fileFilter,
00106           bool offsetData, bool generateData, int exportType),
00107          (DtResponse response, DtString& fileFormat,DtString& fileFilter,
00108           bool& offsetData, bool& generateData, int& exportType))
00109       
00110       DT_FACTORY_RESPONSE_EXT(-2,FileDataMoved,
00111          (const DtAbsoluteTime& start, const DtAbsoluteTime& end, 
00112          const DtRelativeTime& offset),
00113          (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end,
00114          DtRelativeTime& offset))
00115 
00116       DT_FACTORY_RESPONSE_EXT(-3,FileDataDeleted,
00117          (const DtAbsoluteTime& start, const DtAbsoluteTime& end),
00118          (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end))
00119 
00120       DT_FACTORY_RESPONSE_EXT(-4,FileDataAdded,
00121          (const DtAbsoluteTime& start, const DtAbsoluteTime& end,
00122          const DtString& source),
00123          (DtResponse, DtAbsoluteTime& start, DtAbsoluteTime& end,
00124          DtString& source))
00125 
00126       DT_FACTORY_RESPONSE_EXT(-5,ExportCompleted,
00127          (const DtString& fileFormat, const DtString& filename,bool completed),
00128          (DtResponse, DtString& fileFormat, DtString& filename,bool& completed))
00129 
00130       
00131       static const char* commandToString(int commandId);
00132 
00134       static const char* responseToString(int responseId);
00135 
00136 
00137    };
00138 }
00139 
00140 #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)