VariantRow is simply a map of VariantFields. More...
Public Types | |
|
typedef boost::shared_ptr < VariantRow > | SharedPtr |
|
typedef std::map< std::string, VariantField > | VariantMap |
Public Member Functions | |
| VariantRow () | |
| Ctor. | |
| VariantRow (const VariantRow &vr) | |
| ~VariantRow () | |
| Dtor. | |
| void | toString (std::ostream &out) const |
| This serializes a given Variant into the ostream. | |
| void | toHTML (std::ostream &out) const |
| This serializes a given Variant into a HTML formatted string. | |
| bool | hasField (const std::string a_fieldname) const |
| Returns true if the given VariantRow has the field specified by the string. | |
| VariantField * | getFirstField (void) |
| Allows iteration over the fields in this VariantRow. | |
| VariantField * | getNextField (void) |
| Allows iteration over the fields in this VariantRow. | |
| const std::string * | getFirstIndex (void) |
| Allows iteration over the index in this VariantRow. | |
| const std::string * | getNextIndex (void) |
| Allows iteration over the index in this VariantRow. | |
| template<typename VALUE > | |
| bool | find (const std::string &a_field, const VALUE &a_value) |
| Various find operations on the VariantRow. | |
| VariantField * | find (const std::string &a_field) |
| const VariantField * | find (const std::string &a_field) const |
| VariantField & | operator[] (const std::string &index) |
| Subscript operator. | |
| void | setVariantField (const std::string &a_name, const VariantField &a_field) |
| Sets the specifc Variant Field. | |
| VariantField & | getVariantField (const std::string &a_name) |
| Gets the specifc Variant Field. | |
| VariantRow & | operator= (const VariantRow &rhs) |
| Assignment operator. | |
| uint64_bt | getSize () |
| Returns the actual variant Row size. | |
| int | getNumFields () |
| Returns the number of fields in the Variant Row. | |
| bool | write (RawData::SharedPtr &a_pRaw) |
| Writes this variantrow into serializable stream. | |
| bool | write (const std::string &a_fileName) |
| Writes this variantrow into a XML file. | |
| bool | toXML (TiXmlElement *a_element) |
| Writes the Variant Row into an XML Element. | |
| bool | read (RawData::SharedPtr &a_pRaw) |
| Reads this variantrow from serializable stream. | |
| bool | read (const std::string &a_fileName) |
| Loads VariantRow from XML file. | |
| const std::string * | removeCurrentEntry () |
| Removes entry pointed by m_iterator. | |
| void | clear () |
| Removes all variant fields in the variant row. | |
| bool | fromXML (TiXmlElement *a_element) |
| Loads VariantRow from XML. | |
VariantRow is simply a map of VariantFields.
| Tonido::Data::VariantRow::VariantRow | ( | ) |
Ctor.
Details if Needed...
| Tonido::Data::VariantRow::~VariantRow | ( | ) |
Dtor.
Details if Needed...
| void Tonido::Data::VariantRow::clear | ( | ) |
Removes all variant fields in the variant row.
| [in] | none |
| bool Tonido::Data::VariantRow::find | ( | const std::string & | a_field, |
| const VALUE & | a_value | ||
| ) |
Various find operations on the VariantRow.
| [in] | none |
| bool Tonido::Data::VariantRow::fromXML | ( | TiXmlElement * | a_element | ) |
Loads VariantRow from XML.
| [in] | a_element | XML element loads variant row |
| VariantField * Tonido::Data::VariantRow::getFirstField | ( | void | ) |
Allows iteration over the fields in this VariantRow.
| [in] | none |
| const std::string * Tonido::Data::VariantRow::getFirstIndex | ( | void | ) |
Allows iteration over the index in this VariantRow.
| [in] | none |
| VariantField * Tonido::Data::VariantRow::getNextField | ( | void | ) |
Allows iteration over the fields in this VariantRow.
| [in] | none |
| const std::string * Tonido::Data::VariantRow::getNextIndex | ( | void | ) |
Allows iteration over the index in this VariantRow.
| [in] | none |
| int Tonido::Data::VariantRow::getNumFields | ( | ) |
Returns the number of fields in the Variant Row.
| [in] | none |
| uint64_bt Tonido::Data::VariantRow::getSize | ( | ) |
Returns the actual variant Row size.
| [in] | none |
| VariantField& Tonido::Data::VariantRow::getVariantField | ( | const std::string & | a_name | ) |
Gets the specifc Variant Field.
| a_name | name of the variant field |
| a_field | field to set to |
| bool Tonido::Data::VariantRow::hasField | ( | const std::string | a_fieldname | ) | const |
Returns true if the given VariantRow has the field specified by the string.
| [in] | a_fieldname | is the field to check for |
| VariantRow& Tonido::Data::VariantRow::operator= | ( | const VariantRow & | rhs | ) |
Assignment operator.
| [in] | none |
| VariantField& Tonido::Data::VariantRow::operator[] | ( | const std::string & | index | ) |
Subscript operator.
| [in] | none |
| bool Tonido::Data::VariantRow::read | ( | RawData::SharedPtr & | a_pRaw | ) |
Reads this variantrow from serializable stream.
| [in] | none |
| bool Tonido::Data::VariantRow::read | ( | const std::string & | a_fileName | ) |
Loads VariantRow from XML file.
| [in] | a_fileName | name of the XML file to read from |
| const std::string * Tonido::Data::VariantRow::removeCurrentEntry | ( | ) |
Removes entry pointed by m_iterator.
| void Tonido::Data::VariantRow::setVariantField | ( | const std::string & | a_name, |
| const VariantField & | a_field | ||
| ) |
Sets the specifc Variant Field.
| a_name | name of the variant field |
| a_field | field to set to |
| void Tonido::Data::VariantRow::toHTML | ( | std::ostream & | out | ) | const |
This serializes a given Variant into a HTML formatted string.
| [in] | out | std::ostream to write the Variant into |
| void Tonido::Data::VariantRow::toString | ( | std::ostream & | out | ) | const |
This serializes a given Variant into the ostream.
This serializes a given message into the outstream
| [in] | none |
| bool Tonido::Data::VariantRow::toXML | ( | TiXmlElement * | a_element | ) |
Writes the Variant Row into an XML Element.
| [in] | a_element | Parent XML element to write into |
| bool Tonido::Data::VariantRow::write | ( | RawData::SharedPtr & | a_pRaw | ) |
Writes this variantrow into serializable stream.
| [in] | none |
| bool Tonido::Data::VariantRow::write | ( | const std::string & | a_fileName | ) |
Writes this variantrow into a XML file.
| [in] | a_fileName | file to write into |