Public class that represents a dictionary file, composed of blocks with tables.
More...
|
| DicFile (const eFileMode fileMode, const std::string &objFileName, const bool verbose=false, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE, const unsigned int maxLineLength=STD_CIF_LINE_LENGTH, const std::string &nullValue=CifString::UnknownValue) |
|
| DicFile (const bool verbose=false, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE, const unsigned int maxLineLength=STD_CIF_LINE_LENGTH, const std::string &nullValue=CifString::UnknownValue) |
|
| ~DicFile () |
|
void | WriteItemAliases (const std::string &fileName) |
|
ISTable * | GetFormatTable () |
|
int | WriteFormatted (const std::string &cifFileName, ISTable *formatP=NULL) |
|
int | WriteFormatted (const std::string &cifFileName, TableFile *ddl, ISTable *formatP=NULL) |
|
void | Compress (CifFile *ddl) |
|
CifFile * | GetRefFile () |
|
| CifFile (const eFileMode fileMode, const std::string &fileName, const bool verbose=false, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE, const unsigned int maxLineLength=STD_CIF_LINE_LENGTH, const std::string &nullValue=CifString::UnknownValue) |
|
| CifFile (const bool verbose=false, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE, const unsigned int maxLineLength=STD_CIF_LINE_LENGTH, const std::string &nullValue=CifString::UnknownValue) |
|
| ~CifFile () |
|
void | SetSrcFileName (const std::string &srcFileName) |
|
const std::string & | GetSrcFileName () |
|
bool | GetVerbose () |
|
void | SetSmartPrint (bool smartPrint=true) |
|
bool | IsSmartPrint () |
|
void | SetQuoting (eQuoting quoting) |
|
unsigned int | GetQuoting () |
|
void | SetLooping (const std::string &catName, bool looping=false) |
|
bool | GetLooping (const std::string &catName) |
|
void | Write (const std::string &cifFileName, const bool sortTables=false, const bool writeEmptyTables=false) |
|
void | Write (const std::string &cifFileName, const std::vector< std::string > &tableOrder, const bool writeEmptyTables=false) |
|
void | Write (std::ostream &outStream, const bool sortTables=false, const bool writeEmptyTables=false) |
|
void | WriteNmrStar (const std::string &nmrStarFileName, const std::string &globalBlockName, const bool sortTables=false, const bool writeEmptyTables=false) |
|
int | DataChecking (CifFile &dicRef, const std::string &diagFileName, const bool extraChecks=false) |
|
int | DataChecking (Block &block, Block &refBlock, std::ostringstream &buf, const bool extraChecks=false) |
|
void | SetEnumCheck (bool caseSense=false) |
|
bool | GetEnumCheck () |
|
const std::string & | GetParsingDiags () |
|
void | FindCifNullRows (std::vector< unsigned int > &nullRowsIndices, const ISTable &isTable) |
|
void | GetAttributeValue (std::string &attribVal, const std::string &blockId, const std::string &category, const std::string &attribute) |
|
void | GetAttributeValueIf (std::string &attribVal, const std::string &blockId, const std::string &category, const std::string &attributeA, const std::string &attributeB, const std::string &valB) |
|
bool | IsAttributeValueDefined (const std::string &blockId, const std::string &category, const std::string &attribute) |
|
void | SetAttributeValue (const std::string &blockId, const std::string &category, const std::string &attribute, const std::string &value, const bool create=false) |
|
void | SetAttributeValueIf (const std::string &blockId, const std::string &category, const std::string &attributeA, const std::string &valA, const std::string &attributeB, const std::string &valB, const bool create=false) |
|
void | SetAttributeValueIfNull (const std::string &blockId, const std::string &category, const std::string &attribute, const std::string &value) |
|
void | GetAttributeValues (std::vector< std::string > &strings, const std::string &blockId, const std::string &category, const std::string &attribute) |
|
void | GetAttributeValuesIf (std::vector< std::string > &strings, const std::string &blockId, const std::string &category, const std::string &attributeA, const std::string &attributeB, const std::string &valB) |
|
void | SetAttributeValues (const std::string &blockId, const std::string &category, const std::string &attribute, const std::vector< std::string > &values) |
|
int | CheckCategories (Block &block, Block &refBlock, std::ostringstream &log) |
|
void | CheckCategoryKey (Block &block, std::ostringstream &log) |
|
void | CheckItemsTable (Block &block, std::ostringstream &log) |
|
int | CheckItems (Block &block, Block &refBlock, std::ostringstream &log) |
|
| TableFile (const Char::eCompareType caseSense=Char::eCASE_SENSITIVE) |
|
| TableFile (const eFileMode fileMode, const string &fileName, const Char::eCompareType caseSense=Char::eCASE_SENSITIVE) |
|
virtual | ~TableFile () |
|
string | GetFileName (void) |
|
eFileMode | GetFileMode (void) |
|
Char::eCompareType | GetCaseSensitivity (void) |
|
unsigned int | GetStatusInd (void) |
|
unsigned int | GetNumBlocks () |
|
void | GetBlockNames (vector< string > &blockNames) |
|
string | GetFirstBlockName () |
|
bool | IsBlockPresent (const string &blockName) |
|
string | AddBlock (const string &blockName) |
|
Block & | GetBlock (const string &blockName) |
|
string | RenameBlock (const string &oldBlockName, const string &newBlockName) |
|
string | RenameFirstBlock (const string &newBlockName) |
|
void | Flush () |
|
void | Serialize (const string &fileName) |
|
void | Close () |
|
|
int | WriteFormatted (std::ostream &cifo, ISTable *formatP) |
|
int | WriteFormatted (std::ostream &cifo, TableFile *ddl, ISTable *formatP) |
|
void | WriteItemAliases (std::ostream &cifo) |
|
int | _IsQuotableText (const std::string &itemValue) |
|
eIdentType | _FindPrintType (const std::vector< std::string > &values) |
|
void | _PrintItemIdent (std::ostream &cifo, unsigned int &linePos) |
|
void | _PrintItemName (std::ostream &cifo, const std::string &category, const std::string &itemName, unsigned int &linePos) |
|
void | _PrintPostItemSeparator (std::ostream &cifo, unsigned int &linePos, const bool ident=false, const unsigned int numSpaces=1) |
|
int | _PrintItemValue (std::ostream &cifo, const std::string &itemValue, unsigned int &linePos, const eIdentType identType=eNONE, const unsigned int width=0) |
|
int | _PrintItemNameInHeader (std::ostream &cifo, const std::string &itemValue, unsigned int &linePos, const eIdentType identType=eNONE, const unsigned int width=0) |
|
void | _PrintHeaderedItems (std::ostream &cifo, const std::vector< std::string > &colNames, const std::vector< unsigned int > &colWidths, const std::vector< eIdentType > colPrintType) |
|
void | Write (std::ostream &cifo, const std::vector< std::string > &catOrder, const bool writeEmptyTables=false) |
|
void | Write (std::ostream &cifo, std::vector< unsigned int > &tables, const bool writeEmptyTables=false) |
|
void | _SetStatusInd (const string &blockName) |
|
void | _AddBlock (const string &blockName, Serializer *serP) |
|
void | _GetNumTablesInBlocks (vector< UInt32 > &numTablesInBlocks) |
|
ISTable * | _GetTablePtr (const unsigned int blockIndex, const unsigned int tableIndex) |
|
void | _GetAllTables () |
|
unsigned int | GetTotalNumTables () |
|
void | GetTableNames (vector< string > &tableNames) |
|
void | GetTablesIndices (vector< unsigned int > &tablesIndices) |
|
void | GetSortedTablesIndices (vector< unsigned int > &tablesIndices) |
|
void | _ReadFileIndex () |
|
void | _ReadFileIndexVersion0 () |
|
void | _ReadFileIndexVersion1 () |
|
void | _WriteFileIndex (Serializer *serP, const vector< unsigned int > &tableLocs) |
|
Public class that represents a dictionary file, composed of blocks with tables.
This class represents a dictionary file. In addition to inherited methods from CifFile class, this class provides a method for writing the content of "item_aliases" table to a text file.