137 inline void SetName(
const string& name);
152 inline const string&
GetName()
const;
179 void AddTable(
const string& name,
const int indexInFile = 0,
208 void RenameTable(
const string& oldName,
const string& newName);
335 ISTable* _GetTablePtr(
const unsigned int tableIndex);
366 eCLEAR_STATUS = 0x0000,
367 eDUPLICATE_BLOCKS = 0x0001,
368 eUNNAMED_BLOCKS = 0x0002
444 inline string GetFileName(
void);
498 inline unsigned int GetStatusInd(
void);
513 inline unsigned int GetNumBlocks();
528 void GetBlockNames(vector<string>& blockNames);
543 string GetFirstBlockName();
559 bool IsBlockPresent(
const string& blockName);
582 string AddBlock(
const string& blockName);
598 Block& GetBlock(
const string& blockName);
620 string RenameBlock(
const string& oldBlockName,
const string& newBlockName);
637 inline string RenameFirstBlock(
const string& newBlockName);
672 void Serialize(
const string& fileName);
705 void _SetStatusInd(
const string& blockName);
707 void _AddBlock(
const string& blockName,
Serializer* serP);
709 void _GetNumTablesInBlocks(vector<UInt32>& numTablesInBlocks);
711 ISTable* _GetTablePtr(
const unsigned int blockIndex,
712 const unsigned int tableIndex);
713 void _GetAllTables();
715 unsigned int GetTotalNumTables();
718 void GetTablesIndices(vector<unsigned int>& tablesIndices);
719 void GetSortedTablesIndices(vector<unsigned int>& tablesIndices);
721 void _ReadFileIndex();
722 void _ReadFileIndexVersion0();
723 void _ReadFileIndexVersion1();
725 const vector<unsigned int>& tableLocs);
728 static const string _version;
730 void Open(
const string& fileName,
const eFileMode fileMode);
731 unsigned int GetBlockIndexFromTableId(
const string& tableId);
732 string GetTableNameFromTableId(
const string& tableId);
733 string MakeInternalBlockName(
const string& blockName,
734 const unsigned int blockIndex);
735 void PrintHeaderInfo();
777 return _blocks.size();
783 return(RenameBlock(GetFirstBlockName(), newBlockName));
787 #endif // TABLEFILE_H Serializer * _f
Definition: TableFile.h:703
unsigned int _statusInd
Definition: TableFile.h:699
string GetFileName(void)
Definition: TableFile.h:751
unsigned int GetNumBlocks()
Definition: TableFile.h:775
void RenameTable(const string &oldName, const string &newName)
eFileMode _fileMode
Definition: TableFile.h:693
string _fileName
Definition: TableFile.h:691
Char::eCompareType GetCaseSensitivity(void)
Definition: TableFile.h:763
Definition: GenString.h:28
bool IsTablePresent(const string &tableName)
void WriteTable(ISTable &isTable)
const string & GetName() const
Definition: TableFile.h:745
Block(const string &name, Serializer *serP, const eFileMode fileMode=READ_MODE, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE)
void GetTableNames(vector< string > &tableNames)
eStatusInd
Definition: TableFile.h:364
unsigned int GetStatusInd(void)
Definition: TableFile.h:769
Public class that represents a data block, that contains tables.
Definition: TableFile.h:40
ISTable & AddTable(const std::string &name=string(), const Char::eCompareType colCaseSense=Char::eCASE_SENSITIVE)
ISTable * GetTablePtr(const string &tableName)
Header file for ISTable class.
Definition: Serializer.h:43
void DeleteTable(const string &tableName)
ISTable & GetTable(const string &tableName)
string RenameFirstBlock(const string &newBlockName)
Definition: TableFile.h:781
void SetName(const string &name)
Definition: TableFile.h:739
mapped_ptr_vector< Block, StringLess > _blocks
Definition: TableFile.h:701
Public class that represents a file composed of blocks with tables.
Definition: TableFile.h:361
vector< pair< string, ISTable::eTableDiff > > operator==(Block &inBlock)
mapped_ptr_vector< ISTable, StringLess > _tables
Definition: TableFile.h:43
Char::eCompareType _caseSense
Definition: TableFile.h:696
Definition: Serializer.h:36
eFileMode GetFileMode(void)
Definition: TableFile.h:757
Public class that respresents a two-dimensional table of strings.
Definition: ISTable.h:53
eCompareType
Definition: GenString.h:26
eFileMode
Definition: Serializer.h:33