27 #include "../../common/StringUtils.h"
28 #include "../../xml/Reader.h"
29 #include "../../xml/Writer.h"
30 #include "../../xsd/Union.h"
54 if(pos != std::string::npos)
56 std::string value = reader.
getAttr(pos);
57 std::vector<std::string> tokens;
59 for(std::size_t i = 0; i < tokens.size(); ++i)
It defines a simple type as a collection (union) of values from specified simple data types...
This class models a XML reader object.
virtual bool next()=0
It gets the next event to be read.
void ReadAnnotated(te::xsd::Annotated *annotated, te::xml::Reader &reader)
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
Support for Union serialization.
void Tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
It tokenizes a given string with a delimiter of your own choice.
Support for Annotation serialization.
Support for SimpleType serialization.
te::xsd::QName * CreateQName(const std::string &name)
Utility methods for Schema serialization.
TESERIALIZATIONEXPORT te::xsd::Union * ReadUnion(te::xml::Reader &reader)
virtual NodeType getNodeType() const =0
It return the type of node read.
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
TESERIALIZATIONEXPORT te::xsd::SimpleType * ReadSimpleType(te::xml::Reader &reader)
virtual std::size_t getAttrPosition(const std::string &name) const =0
It returns the attribute position.
virtual std::string getAttr(const std::string &name) const =0
It returns the attribute value in the case of an element node with valid attributes.
This class models a XML writer object.