BALL::CIFFile::Datablock Class Reference

#include <BALL/FORMAT/CIFFile.h>

List of all members.

Public Member Functions

void clear ()
void start (String blockname)
void insertDatacontent (const Datacontent &content)
void insertDatacontent (const SaveFrame &new_saveframe)
void insertDatacontent (const Item &item)
const ItemgetDataItem (const String &item_name) const
ItemgetDataItem (const String &item_name)
const std::vector< IndexgetSaveframeIndicesByCategory (const String &name) const
std::vector< IndexgetSaveframeIndicesByCategory (const String &name)
std::vector< SaveFramegetSaveframesByCategory (const String &name) const
const SaveFramegetSaveframeByName (const String &name) const
SaveFramegetSaveframeByName (const String &name)
const SaveFramegetSaveframeByIndex (const Index index) const
SaveFramegetSaveframeByIndex (const Index index)
bool hasSaveframeName (const String &name) const
bool hasSaveframeCategory (const String &name) const
bool hasItem (const String &name) const
void setName (String blockname)
std::ostream & operator>> (std::ostream &os) const

Public Attributes

String name
std::vector< Datacontentdata
StringHashMap< Indexsaveframe_names
std::multimap< String, Indexsaveframe_categories
StringHashMap< Indexitem_names
Item dummy_data_item_
SaveFrame dummy_saveframe_
vector< SaveFramedummy_saveframes_
vector< Indexdummy_indices_

Detailed Description

Nested class for the datablock entity of the CIFFile

Definition at line 139 of file CIFFile.h.


Member Function Documentation

void BALL::CIFFile::Datablock::clear (  ) 

Clears the Datablock

Item& BALL::CIFFile::Datablock::getDataItem ( const String item_name  ) 
const Item& BALL::CIFFile::Datablock::getDataItem ( const String item_name  )  const
SaveFrame& BALL::CIFFile::Datablock::getSaveframeByIndex ( const Index  index  ) 
const SaveFrame& BALL::CIFFile::Datablock::getSaveframeByIndex ( const Index  index  )  const
SaveFrame& BALL::CIFFile::Datablock::getSaveframeByName ( const String name  ) 
const SaveFrame& BALL::CIFFile::Datablock::getSaveframeByName ( const String name  )  const

Returns the saveframe labeled 'name'.

std::vector<Index> BALL::CIFFile::Datablock::getSaveframeIndicesByCategory ( const String name  ) 
const std::vector<Index> BALL::CIFFile::Datablock::getSaveframeIndicesByCategory ( const String name  )  const

Returns the saveframe of category name.

std::vector<SaveFrame> BALL::CIFFile::Datablock::getSaveframesByCategory ( const String name  )  const
bool BALL::CIFFile::Datablock::hasItem ( const String name  )  const
bool BALL::CIFFile::Datablock::hasSaveframeCategory ( const String name  )  const
bool BALL::CIFFile::Datablock::hasSaveframeName ( const String name  )  const

Returns true if the datablock contains a Saveframe of category name.

void BALL::CIFFile::Datablock::insertDatacontent ( const Item item  ) 
void BALL::CIFFile::Datablock::insertDatacontent ( const SaveFrame new_saveframe  ) 
void BALL::CIFFile::Datablock::insertDatacontent ( const Datacontent content  ) 
std::ostream& BALL::CIFFile::Datablock::operator>> ( std::ostream &  os  )  const
void BALL::CIFFile::Datablock::setName ( String  blockname  ) 

Sets the name of a Datablock

void BALL::CIFFile::Datablock::start ( String  blockname  ) 

Sets the name of a new Datablock


Member Data Documentation

Stores the datablock content

Definition at line 188 of file CIFFile.h.

Definition at line 198 of file CIFFile.h.

Definition at line 201 of file CIFFile.h.

Definition at line 199 of file CIFFile.h.

Definition at line 200 of file CIFFile.h.

Hashes the items

Definition at line 196 of file CIFFile.h.

The name of this saveframe

Definition at line 185 of file CIFFile.h.

Definition at line 193 of file CIFFile.h.

Hashes the saveframes - we assume, that they are unique

Definition at line 191 of file CIFFile.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3