|
libCombine
C++ library for working with the COMBINE Archive format
|
Public Member Functions | |
| OmexDescription () | |
| constructs a new omex description More... | |
| OmexDescription (XMLInputStream &stream) | |
| constructs a new omex description document from XML stream More... | |
| bool | isEmpty () const |
| std::string | getDescription () const |
| void | setDescription (const std::string &description) |
| sets the description More... | |
| std::string | getAbout () const |
| void | setAbout (const std::string &about) |
| Sets the about element of the description. More... | |
| const std::vector< VCard > & | getCreators () const |
| std::vector< VCard > & | getCreators () |
| size_t | getNumCreators () const |
| void | setCreators (const std::vector< VCard > &creators) |
| sets the creators More... | |
| void | addCreator (const VCard &creator) |
| adds another creator to the list More... | |
| const LIBSBML_CPP_NAMESPACE_QUALIFIER Date & | getCreated () const |
| LIBSBML_CPP_NAMESPACE_QUALIFIER Date & | getCreated () |
| VCard | getCreator (unsigned int index) const |
| returns the creator for the given index, if not found an empty vcard will be returned. More... | |
| void | setCreated (const LIBSBML_CPP_NAMESPACE_QUALIFIER Date &created) |
| Sets the creation date. More... | |
| const std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > & | getModified () const |
| std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > & | getModified () |
| LIBSBML_CPP_NAMESPACE_QUALIFIER Date | getModified (int index) const |
| size_t | getNumModified () const |
| void | setModified (const std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > &modified) |
| sets the modification dates to the given vector More... | |
| void | addModification (const LIBSBML_CPP_NAMESPACE_QUALIFIER Date &date) |
| Adds the given modification date to the vector. More... | |
| void | writeToFile (const std::string &fileName) |
| writes this description to the given filename More... | |
| std::string | toXML (bool omitDeclaration=false) |
| returns this omex description as a string More... | |
Static Public Member Functions | |
| static const std::string & | getRdfNS () |
| static const std::string & | getDcNS () |
| static std::vector< OmexDescription > | parseFile (const std::string &fileName) |
| parses the given filename returning all description documents found More... | |
| static std::vector< OmexDescription > | parseString (const std::string &xml) |
| parses the given filename returning all description documents found More... | |
| static std::vector< OmexDescription > | readFrom (XMLInputStream &stream) |
| reads all the omes descriptions from the xml input stream More... | |
| static LIBSBML_CPP_NAMESPACE_QUALIFIER Date | getCurrentDateAndTime () |
Static Protected Member Functions | |
| static std::string | readString (XMLInputStream &stream) |
| reads the text node from the next element and returns it More... | |
| static LIBSBML_CPP_NAMESPACE_QUALIFIER Date | readDate (XMLInputStream &stream) |
| reads a date from the stream More... | |
Protected Attributes | |
| std::string | mAbout |
| the about element indicating for which element this description is More... | |
| std::string | mDescription |
| a text description element, that contains a description for the element referenced in the 'about' field. More... | |
| std::vector< VCard > | mCreators |
| a vector of creators More... | |
| LIBSBML_CPP_NAMESPACE_QUALIFIER Date | mCreated |
| creation date More... | |
| std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > | mModified |
| a vector of modification dates More... | |
| OmexDescription::OmexDescription | ( | ) |
constructs a new omex description
| OmexDescription::OmexDescription | ( | XMLInputStream & | stream | ) |
constructs a new omex description document from XML stream
| stream | the xml stream |
| void OmexDescription::addCreator | ( | const VCard & | creator | ) |
adds another creator to the list
| creator | the creator to add |
| void OmexDescription::addModification | ( | const LIBSBML_CPP_NAMESPACE_QUALIFIER Date & | date | ) |
Adds the given modification date to the vector.
| date | the date to add |
| std::string OmexDescription::getAbout | ( | ) | const |
| LIBSBML_CPP_NAMESPACE_QUALIFIER Date & OmexDescription::getCreated | ( | ) |
| const LIBSBML_CPP_NAMESPACE_QUALIFIER Date & OmexDescription::getCreated | ( | ) | const |
| VCard OmexDescription::getCreator | ( | unsigned int | index | ) | const |
returns the creator for the given index, if not found an empty vcard will be returned.
| index | the index for the creator |
| std::vector< VCard > & OmexDescription::getCreators | ( | ) |
| const std::vector< VCard > & OmexDescription::getCreators | ( | ) | const |
|
static |
|
static |
| std::string OmexDescription::getDescription | ( | ) | const |
| std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > & OmexDescription::getModified | ( | ) |
| const std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > & OmexDescription::getModified | ( | ) | const |
| LIBSBML_CPP_NAMESPACE_QUALIFIER Date OmexDescription::getModified | ( | int | index | ) | const |
| size_t OmexDescription::getNumCreators | ( | ) | const |
| size_t OmexDescription::getNumModified | ( | ) | const |
|
static |
| bool OmexDescription::isEmpty | ( | ) | const |
|
static |
parses the given filename returning all description documents found
| fileName | the file to read from |
|
static |
parses the given filename returning all description documents found
| xml | a string containing one or more omex descriptions |
|
staticprotected |
reads a date from the stream
| stream | the stream to read from, a date will only be found if the next element is a start element with name "W3CDTF" |
|
static |
reads all the omes descriptions from the xml input stream
| stream | the xml input stream |
|
staticprotected |
reads the text node from the next element and returns it
| stream | the stream to read from |
| void OmexDescription::setAbout | ( | const std::string & | about | ) |
Sets the about element of the description.
| about | the value to set |
| void OmexDescription::setCreated | ( | const LIBSBML_CPP_NAMESPACE_QUALIFIER Date & | created | ) |
Sets the creation date.
| created | the date to set |
| void OmexDescription::setCreators | ( | const std::vector< VCard > & | creators | ) |
sets the creators
| creators | the vector of elements to set |
| void OmexDescription::setDescription | ( | const std::string & | description | ) |
sets the description
| description | the description element (without any xml tags) |
| void OmexDescription::setModified | ( | const std::vector< LIBSBML_CPP_NAMESPACE_QUALIFIER Date > & | modified | ) |
sets the modification dates to the given vector
| modified | the modification dates to set |
| std::string OmexDescription::toXML | ( | bool | omitDeclaration = false | ) |
returns this omex description as a string
| omitDeclaration | optional boolean flag indicating that the xml declaration should be omitted (false if omitted) |
| void OmexDescription::writeToFile | ( | const std::string & | fileName | ) |
writes this description to the given filename
| fileName | the file name to write to |
|
protected |
the about element indicating for which element this description is
|
protected |
creation date
|
protected |
a vector of creators
|
protected |
a text description element, that contains a description for the element referenced in the 'about' field.
This description is expected to be in xhtml or plain text.
|
protected |
a vector of modification dates