DictObjFile.h
Go to the documentation of this file.
/*$$FILE$$*/
/*$$VERSION$$*/
/*$$DATE$$*/
/*$$LICENSE$$*/
#ifndef DICTOBJFILE_H
#define DICTOBJFILE_H
#include <rcsb/mapped_ptr_vector.h>
#include <rcsb/mapped_ptr_vector.C>
#include <rcsb/DictObjCont.h>
#include <rcsb/DicFile.h>
class DictObjFile
{
public:
DictObjFile(const string& persStorFileName, const eFileMode fileMode =
READ_MODE, const bool verbose = false, const string& dictSdbFileName =
std::string());
~DictObjFile();
void Build();
void Write();
void Read();
unsigned int GetNumDictionaries();
void GetDictionaryNames(vector<string>& dictNames);
DictObjCont& GetDictObjCont(const string& dictName);
void Print();
private:
eFileMode _fileMode;
bool _verbose;
string _dictSdbFileName;
DicFile* _dicFileP;
Serializer& _ser;
mapped_ptr_vector<DictObjCont> _dictionaries;
DictObjCont* _currDictObjContP;
};
#endif // DICTOBJFILE_H