#include <BALL/FORMAT/CIFFile.h>
Classes | |
class | Datablock |
class | Datacontent |
class | Item |
class | SaveFrame |
struct | State |
Public Member Functions | |
Constructors and Destructors | |
CIFFile () | |
CIFFile (const String &filename, File::OpenMode open_mode=std::ios::in) | |
virtual | ~CIFFile () |
Reading and Writing of Crytallographic Information | |
virtual bool | write () |
virtual bool | read () |
Accessors | |
void | inSafeframe (const char *name) |
void | inItem (const char *name) |
void | inDatablock (const char *name) |
void | insertDatablock (const Datablock &datablock) |
const Datablock & | getDatablock (const String &name) const |
Datablock & | getDatablock (const String &name) |
bool | hasDatablock (const String &name) const |
void | setMolecule (Molecule *molecule) |
void | clearParameters () |
Static Public Attributes | |
static State | state |
Protected Member Functions | |
virtual void | initRead_ () |
Protected Attributes | |
Molecule * | molecule_ |
String | current_datablock_ |
String | current_saveframe_ |
String | current_item_ |
StringHashMap< Index > | datablocks_hash_ |
vector< Datablock > | datablocks_ |
CIF file class. This class enables BALL to read and write input and output CIF files for the NMR shift application.
Definition at line 32 of file CIFFile.h.
BALL::CIFFile::CIFFile | ( | ) |
Default constructor
BALL::CIFFile::CIFFile | ( | const String & | filename, | |
File::OpenMode | open_mode = std::ios::in | |||
) |
Detailed constructor
Exception::FileNotFound | if the file could not be opened |
virtual BALL::CIFFile::~CIFFile | ( | ) | [virtual] |
Destructor
void BALL::CIFFile::clearParameters | ( | ) |
void BALL::CIFFile::inDatablock | ( | const char * | name | ) |
void BALL::CIFFile::inItem | ( | const char * | name | ) |
virtual void BALL::CIFFile::initRead_ | ( | ) | [protected, virtual] |
void BALL::CIFFile::inSafeframe | ( | const char * | name | ) |
void BALL::CIFFile::insertDatablock | ( | const Datablock & | datablock | ) |
virtual bool BALL::CIFFile::read | ( | ) | [virtual] |
Read a CIFFile.
Exception::ParseError | if a syntax error was encountered |
Reimplemented in BALL::NMRStarFile.
void BALL::CIFFile::setMolecule | ( | Molecule * | molecule | ) |
virtual bool BALL::CIFFile::write | ( | ) | [virtual] |
Write a CIFFile.
File::CannotWrite | if writing to the file failed |
String BALL::CIFFile::current_datablock_ [protected] |
String BALL::CIFFile::current_item_ [protected] |
String BALL::CIFFile::current_saveframe_ [protected] |
vector<Datablock> BALL::CIFFile::datablocks_ [protected] |
StringHashMap<Index> BALL::CIFFile::datablocks_hash_ [protected] |
Molecule* BALL::CIFFile::molecule_ [protected] |
State BALL::CIFFile::state [static] |