VariantTable is a map of VariantRows. More...
Public Types | |
|
typedef boost::shared_ptr < VariantTable > | SharedPtr |
|
typedef std::map< std::string, VariantRow > | VariantRowMap |
Public Member Functions | |
| VariantTable () | |
| Ctor. | |
| ~VariantTable () | |
| Dtor. | |
| VariantRow & | operator[] (const std::string &a_index) |
| Subscript operator. | |
| VariantRow & | getVariantRow (const std::string &a_index) |
| Returns the VariantRow associated with this index. | |
| void | setVariantRow (const std::string &a_index, const VariantRow &a_variantRow) |
| Sets the VariantRow for an index. | |
| VariantTable & | operator= (const VariantTable &rhs) |
| Assignment operator. | |
| uint64_bt | getSize () |
| Returns the actual variant Row Table size. | |
| bool | write (RawData::SharedPtr &a_pRaw) |
| Writes this variantrow into serializable stream. | |
| bool | write (const std::string &a_fileName) |
| Writes this variantTable into an XML file. | |
| std::string | toXML () |
| Writes this variantTable into an XML string. | |
| std::string | toXMLbyName (const std::string &a_Name) |
| Writes this variantTable into an XML string. | |
| bool | read (RawData::SharedPtr &a_pRaw) |
| Reads this variantrow from serializable stream. | |
| bool | read (const std::string &a_fileName) |
| Loads VariantTable from XML file. | |
| bool | hasRow (const std::string a_row) const |
| Returns true if the given VariantTable has the row specified by the string. | |
| void | addRow (const std::string &a_section) |
| Adds a new named row to the variant table. | |
| void | deleteRow (const std::string &a_section) |
| Deletes the given row with a given section name. | |
| void | toString (std::ostream &out) const |
| Writes the VariantTable to a string. | |
| void | toHTML (std::ostream &out) const |
| VariantRow * | getFirstRow (void) |
| Gets the first row in this VariantTable. | |
| VariantRow * | getNextRow (void) |
| Gets the next row in this VariantTable. | |
| const std::string * | getFirstRowName (void) |
| Gets the first row name in this VariantTable. | |
| const std::string * | getNextRowName (void) |
| Gets the next row name in this VariantTable. | |
| void | clearAll (void) |
| Clear all Rows. | |
VariantTable is a map of VariantRows.
| Tonido::Data::VariantTable::VariantTable | ( | ) |
Ctor.
Details if Needed...
| Tonido::Data::VariantTable::~VariantTable | ( | ) |
Dtor.
Details if Needed...
| void Tonido::Data::VariantTable::clearAll | ( | void | ) |
Clear all Rows.
| [in] | none |
| VariantRow * Tonido::Data::VariantTable::getFirstRow | ( | void | ) |
| const std::string * Tonido::Data::VariantTable::getFirstRowName | ( | void | ) |
Gets the first row name in this VariantTable.
| [in] | none |
| VariantRow * Tonido::Data::VariantTable::getNextRow | ( | void | ) |
| const std::string * Tonido::Data::VariantTable::getNextRowName | ( | void | ) |
| uint64_bt Tonido::Data::VariantTable::getSize | ( | ) |
Returns the actual variant Row Table size.
| VariantRow& Tonido::Data::VariantTable::getVariantRow | ( | const std::string & | a_index | ) |
Returns the VariantRow associated with this index.
| [in] | a_index | subscript |
| bool Tonido::Data::VariantTable::hasRow | ( | const std::string | a_row | ) | const |
Returns true if the given VariantTable has the row specified by the string.
| [in] | a_rowname | is the row to check for |
| Message & Tonido::Message::operator= | ( | const VariantTable & | rhs | ) |
Assignment operator.
| [in] | none |
| VariantRow & Tonido::Message::operator[] | ( | const std::string & | a_index | ) |
| bool Tonido::Data::VariantTable::read | ( | RawData::SharedPtr & | a_pRaw | ) |
Reads this variantrow from serializable stream.
| [in] | RawData | to read from |
| bool Tonido::Data::VariantTable::read | ( | const std::string & | a_fileName | ) |
Loads VariantTable from XML file.
| [in] | a_fileName | name of the XML file to read from |
| void Tonido::Data::VariantTable::setVariantRow | ( | const std::string & | a_index, |
| const VariantRow & | a_variantRow | ||
| ) |
Sets the VariantRow for an index.
| [in] | a_index | subscript |
| std::string Tonido::Data::VariantTable::toXML | ( | ) |
Writes this variantTable into an XML string.
| [in] | a_output | string to write into |
| std::string Tonido::Data::VariantTable::toXMLbyName | ( | const std::string & | a_Name | ) |
Writes this variantTable into an XML string.
| [in] | a_output | string to write into |
| bool Tonido::Data::VariantTable::write | ( | RawData::SharedPtr & | a_pRaw | ) |
Writes this variantrow into serializable stream.
| [in] | RawData | to write into |
| bool Tonido::Data::VariantTable::write | ( | const std::string & | a_fileName | ) |
Writes this variantTable into an XML file.
| [in] | a_fileName | file to write into |