00001 /****************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00008 00009 #ifndef lgrDataViewPrinter_H_ 00010 #define lgrDataViewPrinter_H_ 00011 00012 #include "lgrGui.h" 00013 00014 #include <lgrDataViewSet.h> 00015 #include <lgrPacketPrinter.h> 00016 #include <virtualConstructor.h> 00017 00018 namespace MAKLogger 00019 { 00020 class DtLgrDataViewComponent; 00021 00023 class DT_DLL_LGRGUI DtLgrDataViewPrinter : public DtLgrPacketPrinter 00024 { 00025 public: 00026 00027 DT_VIRTUAL_CTR(DtLgrDataViewPrinter,(DtLgrDataViewComponent* dataView)) 00028 00029 00030 virtual ~DtLgrDataViewPrinter(); 00031 00033 virtual void beginPrinting(const DtMessageIOInfo* info, 00034 const DtMessageInput* fileInput, const DtString& destination); 00035 00037 virtual void printPacket( const DtPacket& packet ); 00038 00040 virtual void endPrinting(); 00041 00043 static DtString theExportType; 00044 00045 protected: 00046 00047 // Start a data set. 00048 virtual void startDataSet(); 00049 00050 // Commit a data set to the view. 00051 virtual void commitDataSet(); 00052 00053 DtLgrDataViewSetSP myDataSet; 00054 DtLgrDataViewComponent* myDataView; 00055 }; 00056 } 00057 00058 #endif