backup.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BARRYBACKUP_BACKUP_H__
00023 #define __BARRYBACKUP_BACKUP_H__
00024
00025 #include "dll.h"
00026 #include "parser.h"
00027 #include <string>
00028 #include <memory>
00029
00030
00031 namespace reuse {
00032 class TarFile;
00033 }
00034
00035 namespace Barry {
00036
00037 class BXEXPORT Backup : public Barry::Parser
00038 {
00039 private:
00040 std::auto_ptr<reuse::TarFile> m_tar;
00041
00042 std::string m_current_dbname;
00043 std::string m_tar_id_text;
00044 std::string m_record_data;
00045
00046 public:
00047 explicit Backup(const std::string &tarpath);
00048 ~Backup();
00049
00050 void Close();
00051
00052
00053 virtual void ParseRecord(const Barry::DBData &data,
00054 const Barry::IConverter *ic);
00055 };
00056
00057 }
00058
00059 #endif
00060