00001
00002
00003
00004
00005
00006
00007 #ifndef DDLFILE_H
00008 #define DDLFILE_H
00009
00010
00011 #include <string>
00012 #include <iostream>
00013
00014 #include "GenString.h"
00015 #include "ISTable.h"
00016 #include "CifFile.h"
00017
00018
00019 class DdlFile : public CifFile
00020 {
00021
00022 public:
00023 using CifFile::Write;
00024
00025 DdlFile() : CifFile()
00026 {
00027 };
00028
00029 DdlFile(const eFileMode fileMode, const string& objFileName,
00030 const bool verbose = false, const StringCompare::eCompareType
00031 caseSense = StringCompare::eCASE_SENSITIVE,
00032 const unsigned int maxLineLength = STD_CIF_LINE_LENGTH,
00033 const string& nullValue = CifString::NullValue) :
00034 CifFile(fileMode, objFileName, verbose, caseSense, maxLineLength,
00035 nullValue)
00036 {
00037 };
00038
00039 ~DdlFile()
00040 {
00041 };
00042
00043 int Write(const string& cifFileName, ISTable* format);
00044 int Write(ostream& cifo, ISTable* format);
00045 int Write(const string& cifFileName, TableFile* ddl, ISTable* format);
00046 int Write(ostream& cifo, TableFile* ddl, ISTable* format);
00047
00048 void Compress(DdlFile* ddl);
00049
00050 };
00051
00052 #endif