#include <DdlFile.h>
Inherits CifFile.
Inherited by DicFile.
Inheritance diagram for DdlFile:


Public Member Functions | |
| DdlFile () | |
| DdlFile (const eFileMode fileMode, const string &fileName, const bool verbose=false, const StringCompare::eCompareType caseSense=StringCompare::eCASE_SENSITIVE, const unsigned int maxLineLength=STD_CIF_LINE_LENGTH, const string &nullValue=CifString::NullValue) | |
| ~DdlFile () | |
| ISTable * | GetFormatTable () |
| int | WriteFormatted (const string &cifFileName, ISTable *formatP=NULL) |
| int | WriteFormatted (const string &cifFileName, TableFile *ddl, ISTable *formatP=NULL) |
| void | Compress (DdlFile *ddl) |
Protected Member Functions | |
| int | WriteFormatted (ostream &cifo, ISTable *formatP) |
| int | WriteFormatted (ostream &cifo, TableFile *ddl, ISTable *formatP) |
Protected Attributes | |
| ISTable * | _formatP |
This class represents a DDL file. In addition to inherited methods from CifFile class, this class provides methods for writing formatted data to a text file.
| DdlFile::DdlFile | ( | ) |
Constructs a DDL file.
| None |
| None |
| DdlFile::DdlFile | ( | const eFileMode | fileMode, | |
| const string & | fileName, | |||
| const bool | verbose = false, |
|||
| const StringCompare::eCompareType | caseSense = StringCompare::eCASE_SENSITIVE, |
|||
| const unsigned int | maxLineLength = STD_CIF_LINE_LENGTH, |
|||
| const string & | nullValue = CifString::NullValue | |||
| ) |
Constructs a DDL file.
| [in] | fileMode | - DDL file mode. Possible values are read-only, create, update and virtual. Detailed description of file mode is given in TableFile documentation. |
| [in] | fileName | - relative or absolute name of the file where object persistency is maintained. If fileMode specifies virtual mode, this parameter is ignored. |
| [in] | verbose | - optional parameter that indicates whether logging should be turned on (if true) or off (if false). If verbose is not spefified, logging is turned off. |
| [in] | caseSense | - optional parameter that indicates case sensitivity of table names. Possible values are case sensitive and case in-sensitive. If not specified, case sensitive table names are assumed. |
| [in] | maxLineLength | - optional parameter that indicates the maximum number of written characters in one line in the written text file. If not specified, STD_CIF_LINE_LENGTH is used. |
| [in] | nullValue | - optional parameter that indicates the character that is to be used to denote unknown value in the written CIF file. If not specified, CifString::NullValue is used. |
| None |
| DdlFile::~DdlFile | ( | ) |
Destructs a DDL file, by releasing all consumed resources.
| Not applicable |
| None |
| ISTable * DdlFile::GetFormatTable | ( | ) |
Method, not currently part of users public API, and will soon be re-examined.
| int DdlFile::WriteFormatted | ( | const string & | cifFileName, | |
| ISTable * | formatP = NULL | |||
| ) |
Method, not currently part of users public API, and will soon be re-examined.
| int DdlFile::WriteFormatted | ( | const string & | cifFileName, | |
| TableFile * | ddl, | |||
| ISTable * | formatP = NULL | |||
| ) |
Method, not currently part of users public API, and will soon be re-examined.
| void DdlFile::Compress | ( | DdlFile * | ddl | ) |
Method, not currently part of users public API, and will soon be re-examined.
| int DdlFile::WriteFormatted | ( | ostream & | cifo, | |
| ISTable * | formatP | |||
| ) | [protected] |
| int DdlFile::WriteFormatted | ( | ostream & | cifo, | |
| TableFile * | ddl, | |||
| ISTable * | formatP | |||
| ) | [protected] |
ISTable* DdlFile::_formatP [protected] |
1.5.1