librcsb-core-wrapper  1.000
CifFileUtil.h
Go to the documentation of this file.
1 //$$FILE$$
2 //$$VERSION$$
3 //$$DATE$$
4 //$$LICENSE$$
5 
6 
7 #ifndef CIFFILEUTIL_H
8 #define CIFFILEUTIL_H
9 
10 
11 #include <string>
12 
13 #include <rcsb/DicFile.h>
14 #include <rcsb/CifFile.h>
15 
16 
17 DicFile* GetDictFile(DicFile* ddlFileP, const std::string& dictFileName,
18  const std::string& dictSdbFileName = std::string(), const bool verbose =
19  false, const eFileMode fileMode = READ_MODE);
20 void CheckDict(DicFile* dictFileP, DicFile* ddlFileP,
21  const string& dictFileName, const bool extraChecks = false);
22 void CheckCif(CifFile* cifFileP, DicFile* dictFileP,
23  const string& cifFileName);
24 
25 DicFile* ParseDict(const std::string& dictFileName, DicFile* ddlFileP = NULL,
26  const bool verbose = false);
27 CifFile* ParseCif(const std::string& fileName, const bool verbose = false,
28  const Char::eCompareType caseSense = Char::eCASE_SENSITIVE,
29  const unsigned int maxLineLength = CifFile::STD_CIF_LINE_LENGTH,
30  const std::string& nullValue = CifString::UnknownValue,
31  const std::string& parseLogFileName = std::string());
32 CifFile* ParseCifString(const std::string& cifString,
33  const bool verbose = false,
34  const Char::eCompareType caseSense = Char::eCASE_SENSITIVE,
35  const unsigned int maxLineLength = CifFile::STD_CIF_LINE_LENGTH,
36  const std::string& nullValue = CifString::UnknownValue);
37 
53 void DataCorrection(CifFile& cifFile, DicFile& dicRef);
54 
55 #endif