#include <HTColumn.h>
Public Member Functions | |
HTColumn (const std::string &label, const std::string &block=std::string(), const std::string &indexLabel=std::string()) | |
HTColumn (const HTColumn &) | |
virtual | ~HTColumn () |
HTColumn & | operator= (const HTColumn &) |
virtual const std::string & | label () const |
virtual const std::string & | block () const |
virtual const std::string & | indexLabel () const |
virtual const std::string & | typeName () const =0 |
virtual void | clearData ()=0 |
virtual void | print () const |
Private Attributes | |
std::string | _label |
std::string | _block |
std::string | _indexLabel |
Definition at line 57 of file HTColumn.h.
HTColumn::HTColumn | ( | const std::string & | label, | |
const std::string & | block = std::string() , |
|||
const std::string & | indexLabel = std::string() | |||
) |
HTColumn::HTColumn | ( | const HTColumn & | ) |
Definition at line 73 of file HTColumn.cxx.
00073 : 00074 _label(o._label), 00075 _block(o._block), 00076 _indexLabel(o._indexLabel) 00077 { 00078 }
HTColumn::~HTColumn | ( | ) | [virtual] |
const string & HTColumn::block | ( | ) | const [virtual] |
Definition at line 116 of file HTColumn.cxx.
References _block.
Referenced by print().
00117 { 00118 return _block ; 00119 }
virtual void HTColumn::clearData | ( | ) | [pure virtual] |
const string & HTColumn::indexLabel | ( | ) | const [virtual] |
Definition at line 122 of file HTColumn.cxx.
References _indexLabel.
Referenced by print().
00123 { 00124 return _indexLabel ; 00125 }
const string & HTColumn::label | ( | ) | const [virtual] |
Definition at line 110 of file HTColumn.cxx.
References _label.
Referenced by print().
00111 { 00112 return _label ; 00113 }
Definition at line 95 of file HTColumn.cxx.
References _block, _indexLabel, and _label.
00096 { 00097 if (&o == this) return *this; 00098 _label = o._label ; 00099 _block = o._block ; 00100 _indexLabel = o._indexLabel ; 00101 00102 return *this ; 00103 }
void HTColumn::print | ( | ) | const [virtual] |
Definition at line 128 of file HTColumn.cxx.
References block(), indexLabel(), label(), and typeName().
00129 { 00130 cout << label() ; 00131 if ( indexLabel().length() > 0 ) cout << "(" << indexLabel() << ")" ; 00132 cout<< ends ; 00133 00134 cout << " @ " << setw(10) << block() ; 00135 cout << " : " << typeName() ; 00136 cout << endl ; 00137 cout << resetiosflags(ios::adjustfield) ; 00138 }
virtual const std::string& HTColumn::typeName | ( | ) | const [pure virtual] |
Referenced by print().
std::string HTColumn::_block [private] |
std::string HTColumn::_indexLabel [private] |
std::string HTColumn::_label [private] |