OBPairData Class Reference

Used to store arbitrary attribute/value relationships. More...

#include <generic.h>

Inheritance diagram for OBPairData:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 OBPairData ()
void SetValue (const char *v)
void SetValue (const std::string &v)
std::string & GetValue ()
void SetAttribute (const std::string &v)
virtual const std::string & GetAttribute () const
unsigned int GetDataType () const

Protected Attributes

std::string _value
std::string _attr
 attribute tag (e.g., "UnitCell", "Comment" or "Author")
unsigned int _type
 attribute type -- declared for each subclass

Detailed Description

Used to store arbitrary attribute/value relationships.

Ideal for arbitrary text descriptors for molecules, atoms, bonds, residues, e.g. in QSAR.


Constructor & Destructor Documentation

OBPairData (  ) 


Member Function Documentation

void SetValue ( const char *  v  )  [inline]

void SetValue ( const std::string &  v  )  [inline]

std::string& GetValue (  )  [inline]

void SetAttribute ( const std::string &  v  )  [inline, inherited]

virtual const std::string& GetAttribute (  )  const [inline, virtual, inherited]

unsigned int GetDataType (  )  const [inline, inherited]


Member Data Documentation

std::string _value [protected]

std::string _attr [protected, inherited]

attribute tag (e.g., "UnitCell", "Comment" or "Author")

unsigned int _type [protected, inherited]

attribute type -- declared for each subclass


The documentation for this class was generated from the following files: