|
copasi API
0.1
|
#include <CCopasiXMLInterface.h>
Public Member Functions | |
| CXMLAttributeList () | |
| CXMLAttributeList (const CXMLAttributeList &src) | |
| ~CXMLAttributeList () | |
| bool | erase () |
| template<class CType > | |
| bool | add (const std::string &name, const CType &value) |
| bool | add (const std::string &name, const C_FLOAT64 &value) |
| template<class CType > | |
| bool | add (const std::string &name, const CType &value, const CCopasiXMLInterface::EncodingType &encodingType) |
| unsigned C_INT32 | size () |
| bool | setName (const unsigned C_INT32 &index, const std::string &name) |
| const std::string & | getName (const unsigned C_INT32 &index) const |
| template<class CType > | |
| bool | set (const unsigned C_INT32 &index, const std::string &name, const CType &value) |
| template<class CType > | |
| bool | set (const unsigned C_INT32 &index, const std::string &name, const CType &value, const CCopasiXMLInterface::EncodingType &encodingType) |
| template<class CType > | |
| bool | setValue (const unsigned C_INT32 &index, const CType &value) |
| template<class CType > | |
| bool | setValue (const unsigned C_INT32 &index, const CType &value, const CCopasiXMLInterface::EncodingType &encodingType) |
| const std::string & | getValue (const unsigned C_INT32 &index) const |
| bool | skip (const unsigned C_INT32 &index) |
| std::string | getAttribute (const unsigned C_INT32 &index) const |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const CXMLAttributeList &attr) |
A list of XML attributes used by saveElement and startSaveElement.
| CXMLAttributeList::CXMLAttributeList | ( | ) |
Constructor.
| CXMLAttributeList::CXMLAttributeList | ( | const CXMLAttributeList & | src | ) |
Copy constructor.
| const | CXMLAttributeList & src |
| CXMLAttributeList::~CXMLAttributeList | ( | ) |
Destructor.
| bool CXMLAttributeList::add | ( | const std::string & | name, |
| const CType & | value | ||
| ) | [inline] |
Add an attribute to the end of the list. Note: the value will be XML encoded
| const | std::string & name |
| const | CType & value |
| bool CXMLAttributeList::add | ( | const std::string & | name, |
| const C_FLOAT64 & | value | ||
| ) |
Add an attribute to the end of the list. Note: the value will be XML encoded
| const | std::string & name |
| const | C_FLOAT64 & value |
| bool CXMLAttributeList::add | ( | const std::string & | name, |
| const CType & | value, | ||
| const CCopasiXMLInterface::EncodingType & | encodingType | ||
| ) | [inline] |
Add an attribute to the end of the list. Note: the value will be XML encoded
| const | std::string & name |
| const | CType & value |
| const | CCopasiXMLInterface::EncodingType & encodingType |
| bool CXMLAttributeList::erase | ( | ) |
Erase the content of the attribute list.
| std::string CXMLAttributeList::getAttribute | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve the indexed attribute (' name="value"' or '' if skipped).
| const | unsigned C_INT32 & index |
| const std::string & CXMLAttributeList::getName | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve the name of the indexed attribute.
| const | unsigned C_INT32 & index |
| const std::string & CXMLAttributeList::getValue | ( | const unsigned C_INT32 & | index | ) | const |
Retrieve the value of the indexed attribute.
| const | unsigned C_INT32 & index |
| bool CXMLAttributeList::set | ( | const unsigned C_INT32 & | index, |
| const std::string & | name, | ||
| const CType & | value | ||
| ) | [inline] |
Set the name and value of the indexed attribute Note: the value will be XML encoded
| const | unsigned C_INT32 & index |
| const | std::string & name |
| const | CType & value |
| bool CXMLAttributeList::set | ( | const unsigned C_INT32 & | index, |
| const std::string & | name, | ||
| const CType & | value, | ||
| const CCopasiXMLInterface::EncodingType & | encodingType | ||
| ) | [inline] |
Set the name and value of the indexed attribute Note: the value will be XML encoded
| const | unsigned C_INT32 & index |
| const | std::string & name |
| const | CType & value |
| const | CCopasiXMLInterface::EncodingType & encodingType |
| bool CXMLAttributeList::setName | ( | const unsigned C_INT32 & | index, |
| const std::string & | name | ||
| ) |
Set the name of the indexed attribute
| const | unsigned C_INT32 & index |
| const | std::string & name |
| bool CXMLAttributeList::setValue | ( | const unsigned C_INT32 & | index, |
| const CType & | value | ||
| ) | [inline] |
Set the value of the indexed attribute Note: the value will be XML encoded
| const | unsigned C_INT32 & index |
| const | CType & value |
| bool CXMLAttributeList::setValue | ( | const unsigned C_INT32 & | index, |
| const CType & | value, | ||
| const CCopasiXMLInterface::EncodingType & | encodingType | ||
| ) | [inline] |
Set the value of the indexed attribute Note: the value will be XML encoded
| const | unsigned C_INT32 & index |
| const | CType & value |
| const | CCopasiXMLInterface::EncodingType & encodingType |
| unsigned C_INT32 CXMLAttributeList::size | ( | ) |
Retrieve the size of the list.
| bool CXMLAttributeList::skip | ( | const unsigned C_INT32 & | index | ) |
Set whether the indexed attribute shall be skipped during save.
| const | unsigned C_INT32 & index |
| std::ostream& operator<< | ( | std::ostream & | os, |
| const CXMLAttributeList & | attr | ||
| ) | [friend] |
1.7.5.1