#include "CTBattrList.hxx"
Collaboration diagram for CTBattrList:
Public Methods | |
CTBattrList () | |
~CTBattrList () | |
void | Set (const char *c_key, const char *c_value) |
void | Set (const char *c_key, const CTBstring &value) |
CTBint | Size () const |
void | Clear () |
void | ToStream (ostream &os) const |
void | ToXStream (CTBxmlOStream &xos, const char *c_name="CTBattrList") const |
void | FromXStream (CTBxmlIStream &xis, const char *c_name="CTBattrList") |
const CTBstring & | operator[] (CTBint i_ind) const |
const CTBstring & | operator[] (const char *c_key) const |
const CTBstring & | operator[] (const CTBstring &key) const |
bool | operator! () const |
operator void * () const | |
Private Methods | |
CTBint | Find (const char *c_key) const |
CTBint | Find (const CTBstring &key) const |
CTBint | FindOrCreate (const char *c_key) |
CTBint | FindOrCreate (const CTBstring &key) |
Private Attributes | |
CTBvector< CTBpair< CTBstring, CTBstring > > | m_attrlist |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBattrList &obj) |
CTBxmlOStream & | operator<< (CTBxmlOStream &xos, const CTBattrList &obj) |
CTBxmlIStream & | operator>> (CTBxmlIStream &xis, CTBattrList &obj) |
Definition at line 22 of file CTBattrList.hxx.
|
Default constructor.
Definition at line 27 of file CTBattrList.cxx. |
|
Destructor.
Definition at line 33 of file CTBattrList.cxx. |
|
Set attribute with key c_key to c_value.
Definition at line 39 of file CTBattrList.cxx. |
|
Set attribute with key c_key to value.
Definition at line 48 of file CTBattrList.cxx. |
|
Returns number of attribute keys.
Definition at line 17 of file CTBattrList.icc. |
|
Delete all attributes.
Definition at line 57 of file CTBattrList.cxx. Referenced by FromXStream().
|
|
ostream insertion.
Definition at line 66 of file CTBattrList.cxx. Referenced by operator<<().
|
|
XML ostream insertion.
Definition at line 77 of file CTBattrList.cxx. Referenced by operator<<().
|
|
XML istream extraction.
Definition at line 99 of file CTBattrList.cxx. Referenced by operator>>().
|
|
Returns value of i_ind 'th attribute.
Definition at line 129 of file CTBattrList.cxx. |
|
Returns value of attribute with key c_key.
Definition at line 138 of file CTBattrList.cxx. |
|
Returns value of attribute with key c_key.
Definition at line 147 of file CTBattrList.cxx. |
|
Negation operator, returns
Definition at line 25 of file CTBattrList.icc. |
|
Returns non-zero pointer if list is non-empty.
Definition at line 33 of file CTBattrList.icc. |
|
Returns index of attribute with key c_key or -1 of none defined.
Definition at line 156 of file CTBattrList.cxx. Referenced by Find(), FindOrCreate(), and operator[]().
|
|
Returns index of attribute with key key or -1 of none defined.
Definition at line 167 of file CTBattrList.cxx. |
|
Returns index of attribute with key c_key. Creates key if none available.
Definition at line 175 of file CTBattrList.cxx. Referenced by FindOrCreate(), FromXStream(), and Set().
|
|
Returns index of attribute with key key. Creates key if none available.
Definition at line 188 of file CTBattrList.cxx. |
|
ostream insertion (see
Definition at line 44 of file CTBattrList.icc. |
|
XML ostream insertion operator (see
Definition at line 56 of file CTBattrList.icc. |
|
XML istream extraction operator (see
Definition at line 68 of file CTBattrList.icc. |
|
Definition at line 57 of file CTBattrList.hxx. |