BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
BALL::CIFFile::Item Class Reference

#include <BALL/FORMAT/CIFFile.h>

Public Member Functions

 Item ()
 
 Item (const Item &item)
 
virtual ~Item ()
 
void clear ()
 
void addPair (String key, String value)
 
void startLoop ()
 
void addTag (String tag)
 
void addValue (String value)
 
Index getKeyIndex (String key)
 
std::ostream & operator>> (std::ostream &os) const
 

Public Attributes

bool is_loop
 
std::vector< Stringkeys
 
std::vector< std::vector
< String > > 
values
 
std::pair< String, Stringentry
 

Detailed Description

Nested class for the dataitems of the CIFFile

Definition at line 38 of file CIFFile.h.

Constructor & Destructor Documentation

BALL::CIFFile::Item::Item ( )
BALL::CIFFile::Item::Item ( const Item item)
virtual BALL::CIFFile::Item::~Item ( )
virtual

Member Function Documentation

void BALL::CIFFile::Item::addPair ( String  key,
String  value 
)
void BALL::CIFFile::Item::addTag ( String  tag)
void BALL::CIFFile::Item::addValue ( String  value)
void BALL::CIFFile::Item::clear ( )

Acessors

Index BALL::CIFFile::Item::getKeyIndex ( String  key)

Returns the index of the Item identifier key. If there is no such key, -1 is returned.

std::ostream& BALL::CIFFile::Item::operator>> ( std::ostream &  os) const
void BALL::CIFFile::Item::startLoop ( )

Member Data Documentation

std::pair<String, String> BALL::CIFFile::Item::entry

Stores the tag-value pair in key - value format

Definition at line 69 of file CIFFile.h.

bool BALL::CIFFile::Item::is_loop

Definition at line 59 of file CIFFile.h.

std::vector<String> BALL::CIFFile::Item::keys

Stores all loop data indices Stores all raw loop data

Definition at line 64 of file CIFFile.h.

std::vector<std::vector<String> > BALL::CIFFile::Item::values

Stores the loop data per line

Definition at line 66 of file CIFFile.h.