|
struct | Optional |
| RAII helper class to set optional to opt for current scope. More...
|
|
void | addMember (const string &name, const string &memberType) |
| add an attribute name with XSD type memberType
|
void | addBase (const string &base) |
| add a base class to the current definition
|
void | addDependency (const string &type, const string &dependency) |
| add a dependency between type and dependency (XSD qualifed name)
|
void | openType (const string &type, const string &description) |
void | closeType () |
| complete type definition - matching last nested openType
|
string | currentDescription () const |
void | defineType (const string &type, const string &def) |
| add a complete XSD definition for type
|
void | output (std::ostream &o, const string &targetNS) |
|
string | rootName |
| name of the root element, and its XSD type, in the Schema
|
string | rootType |
bool | optional |
| set to true if next addMember refers to an optional element
|
◆ openType()
void openType |
( |
const string & | type, |
|
|
const string & | description ) |
|
inline |
start collecting attribute names for type. description is the description string passed through as arg2 of xsd_generate()
◆ output()
void output |
( |
std::ostream & | o, |
|
|
const string & | targetNS ) |
|
inline |
output XSD to the stream \o, targetting XML namespace targetNS
References rootName.
The documentation for this class was generated from the following file: