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
DicFile.h
Header file for DicFile class.
DictObjCont.h
Header file for ObjCont, ItemObjCont and DictObjCont classes.
eFileMode
eFileMode
Definition Serializer.h:34
READ_MODE
@ READ_MODE
Definition Serializer.h:36
DicFile
Public class that represents a dictionary file, composed of blocks with tables.
Definition DicFile.h:37
DictObjCont
Public class that represents a dictionary object container.
Definition DictObjCont.h:202
DictObjFile
Public class that represents a dictionary object file.
Definition DictObjFile.h:41
DictObjFile::Build
void Build()
DictObjFile::GetDictionaryNames
void GetDictionaryNames(vector< string > &dictNames)
DictObjFile::GetDictObjCont
DictObjCont & GetDictObjCont(const string &dictName)
DictObjFile::Write
void Write()
DictObjFile::GetNumDictionaries
unsigned int GetNumDictionaries()
DictObjFile::DictObjFile
DictObjFile(const string &persStorFileName, const eFileMode fileMode=READ_MODE, const bool verbose=false, const string &dictSdbFileName=std::string())
DictObjFile::~DictObjFile
~DictObjFile()
DictObjFile::Read
void Read()
DictObjFile::Print
void Print()
Serializer
Definition Serializer.h:44
mapped_ptr_vector
Definition mapped_ptr_vector.h:30
mapped_ptr_vector.C
mapped_ptr_vector.h