librcsb-core-wrapper
1.005
|
Go to the documentation of this file.
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);
582 string AddBlock(
const string& blockName);
620 string RenameBlock(
const string& oldBlockName,
const string& newBlockName);
712 const unsigned int tableIndex);
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();
787 #endif // TABLEFILE_H
void SetName(const string &name)
Definition: TableFile.h:739
string GetFileName(void)
Definition: TableFile.h:751
Definition: TableFile.h:367
bool IsTablePresent(const string &tableName)
string GetFirstBlockName()
Serializer * _f
Definition: TableFile.h:703
void _GetNumTablesInBlocks(vector< UInt32 > &numTablesInBlocks)
void GetTablesIndices(vector< unsigned int > &tablesIndices)
unsigned int _statusInd
Definition: TableFile.h:699
unsigned int GetNumBlocks()
Definition: TableFile.h:775
Public class that respresents a two-dimensional table of strings.
Definition: ISTable.h:53
Definition: GenString.h:28
eFileMode _fileMode
Definition: TableFile.h:693
Block(const string &name, Serializer *serP, const eFileMode fileMode=READ_MODE, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE)
Header file for ISTable class.
void GetTableNames(vector< string > &tableNames)
void GetTableNames(vector< string > &tableNames)
eFileMode
Definition: Serializer.h:33
void DeleteTable(const string &tableName)
string _fileName
Definition: TableFile.h:691
Char::eCompareType GetCaseSensitivity(void)
Definition: TableFile.h:763
vector< pair< string, ISTable::eTableDiff > > operator==(Block &inBlock)
void _AddBlock(const string &blockName, Serializer *serP)
unsigned int size() const
Definition: mapped_ptr_vector.C:78
void GetSortedTablesIndices(vector< unsigned int > &tablesIndices)
Public class that represents a file composed of blocks with tables.
Definition: TableFile.h:361
Definition: Serializer.h:43
eStatusInd
Definition: TableFile.h:364
ISTable & GetTable(const string &tableName)
unsigned int GetStatusInd(void)
Definition: TableFile.h:769
ISTable & AddTable(const std::string &name=string(), const Char::eCompareType colCaseSense=Char::eCASE_SENSITIVE)
void _WriteFileIndex(Serializer *serP, const vector< unsigned int > &tableLocs)
string RenameBlock(const string &oldBlockName, const string &newBlockName)
unsigned int GetTotalNumTables()
TableFile(const Char::eCompareType caseSense=Char::eCASE_SENSITIVE)
ISTable * _GetTablePtr(const unsigned int blockIndex, const unsigned int tableIndex)
void _SetStatusInd(const string &blockName)
Definition: TableFile.h:366
void _ReadFileIndexVersion1()
void RenameTable(const string &oldName, const string &newName)
void Serialize(const string &fileName)
Definition: TableFile.h:368
Block & GetBlock(const string &blockName)
mapped_ptr_vector< Block, StringLess > _blocks
Definition: TableFile.h:701
string RenameFirstBlock(const string &newBlockName)
Definition: TableFile.h:781
Public class that represents a data block, that contains tables.
Definition: TableFile.h:40
void WriteTable(ISTable &isTable)
const string & GetName() const
Definition: TableFile.h:745
eFileMode GetFileMode(void)
Definition: TableFile.h:757
mapped_ptr_vector< ISTable, StringLess > _tables
Definition: TableFile.h:43
bool IsBlockPresent(const string &blockName)
eCompareType
Definition: GenString.h:26
string AddBlock(const string &blockName)
Char::eCompareType _caseSense
Definition: TableFile.h:696
void GetBlockNames(vector< string > &blockNames)
ISTable * GetTablePtr(const string &tableName)
void _ReadFileIndexVersion0()
Definition: Serializer.h:36