Go to the documentation of this file.00001
00002
00003
00004
00005
00008
00009 #ifndef lgrDatabasePrinter_H_
00010 #define lgrDatabasePrinter_H_
00011
00012 #include "lgrSqlExporter.h"
00013 #include <databaseTable.h>
00014 #include <vector>
00015
00016 class DtDatabaseInterface;
00017 class DtOutputStream;
00018 class DtString;
00019
00020 namespace MAKLogger
00021 {
00022
00023 class DT_DLL_SQLEXPORTER DtLgrDatabasePrinter
00024 {
00025 public:
00026
00028 DtLgrDatabasePrinter(DtOutputStream& log,DtDatabaseInterface& db);
00029
00031 virtual ~DtLgrDatabasePrinter();
00032
00034 DtOutputStream& log();
00035
00037 DtDatabaseInterface& db();
00038
00039
00040 protected:
00041
00042 typedef std::vector<DtDatabaseTableSP> TableList;
00043
00045 void createTablesFromList( TableList& tableList, const DtString& className );
00046
00048 void updateTablesFromList( TableList& tableList );
00049
00051 void resetTablesFromList( TableList& tables) const;
00052
00053 DtDatabaseInterface& myDatabaseInterface;
00054 DtOutputStream& myOutputLog;
00055 };
00056
00057 }
00058
00059 #endif