VHISTlib
1.84.0.3018
|
00001 /* $HEADERS 00002 $Id: vhistfilemanager.h 2179 2011-06-24 09:03:24Z ahuesgen $ 00003 */ 00004 00005 #ifndef VHISTFILEMANAGER_INCLUDED 00006 #define VHISTFILEMANAGER_INCLUDED 00007 00008 #include <QString> 00009 #include <QSharedPointer> 00010 #include <QHash> 00011 00012 #include "../shared/misc_defines.h" 00013 #include "../shared/logsource.h" 00014 #include "tempvhistfile.h" 00015 00016 namespace vhist 00017 { 00018 00019 class VHIST_EXTERN VhistFileManager : public LogSource 00020 { 00021 Q_OBJECT 00022 public: 00023 VhistFileManager(QObject* listener = NULL); 00024 VhistFileManager(const VhistFileManager& rhs); 00025 ~VhistFileManager(); 00026 00027 VhistFileManager& operator=(const VhistFileManager& rhs); 00028 00029 public: 00030 SPVhistParser addVhistFile(const QString& filename, bool deleteFile); 00031 SPVhistParser addVhistFile(SPVhistParser vhistfile, 00032 const QString& filename); 00033 SPVhistParser parser(const QString& filename); 00034 void clear(); 00035 00036 private: 00037 QHash<QString, QSharedPointer<TempVhistfile> > m_files; 00038 }; 00039 00040 00041 } // namespace vhist 00042 00043 #endif // VHISTFILEMANAGER_INCLUDED