lgrDatabasePrinter.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 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

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)