DicFile.h
Go to the documentation of this file.
//$$FILE$$
//$$VERSION$$
//$$DATE$$
//$$LICENSE$$
#ifndef DICFILE_H
#define DICFILE_H
#include <string>
#include <iostream>
#include <rcsb/GenString.h>
#include <rcsb/ISTable.h>
#include <rcsb/CifFile.h>
class DicFile : public CifFile
{
public:
using CifFile::Write;
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();
protected:
ISTable* _formatP;
int WriteFormatted(std::ostream& cifo, ISTable* formatP);
int WriteFormatted(std::ostream& cifo, TableFile* ddl, ISTable* formatP);
void WriteItemAliases(std::ostream& cifo);
private:
void AddRefRow(ISTable& table, const char* first, const char* second,
const char* third);
};
#endif
CifFile.h
Header file for CifFile class.
GenString.h
ISTable.h
Header file for ISTable class.
eFileMode
eFileMode
Definition Serializer.h:34
Char::eCompareType
eCompareType
Definition GenString.h:27
Char::eCASE_SENSITIVE
@ eCASE_SENSITIVE
Definition GenString.h:28
CifFile
Public class that represents a CIF file, composed of blocks with tables.
Definition CifFile.h:48
CifFile::STD_CIF_LINE_LENGTH
static const unsigned int STD_CIF_LINE_LENGTH
Definition CifFile.h:53
CifFile::Write
void Write(const std::string &cifFileName, const bool sortTables=false, const bool writeEmptyTables=false)
CifString::UnknownValue
static const std::string UnknownValue
Definition CifString.h:128
DicFile
Public class that represents a dictionary file, composed of blocks with tables.
Definition DicFile.h:37
DicFile::GetRefFile
CifFile * GetRefFile()
DicFile::WriteFormatted
int WriteFormatted(std::ostream &cifo, ISTable *formatP)
DicFile::WriteFormatted
int WriteFormatted(const std::string &cifFileName, TableFile *ddl, ISTable *formatP=NULL)
DicFile::_formatP
ISTable * _formatP
Definition DicFile.h:168
DicFile::WriteItemAliases
void WriteItemAliases(std::ostream &cifo)
DicFile::WriteFormatted
int WriteFormatted(const std::string &cifFileName, ISTable *formatP=NULL)
DicFile::GetFormatTable
ISTable * GetFormatTable()
DicFile::DicFile
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::Compress
void Compress(CifFile *ddl)
DicFile::DicFile
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::~DicFile
~DicFile()
DicFile::WriteFormatted
int WriteFormatted(std::ostream &cifo, TableFile *ddl, ISTable *formatP)
DicFile::WriteItemAliases
void WriteItemAliases(const std::string &fileName)
ISTable
Public class that respresents a two-dimensional table of strings.
Definition ISTable.h:54
TableFile
Public class that represents a file composed of blocks with tables.
Definition TableFile.h:362