Classdesc  3.D29
xsd_generate_t Class Reference
Collaboration diagram for xsd_generate_t:
Collaboration graph

Classes

struct  Optional
 RAII helper class to set optional to opt for current scope. More...
 

Public Member Functions

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)
 

Public Attributes

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
 

Member Function Documentation

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()

void output ( std::ostream &  o,
const string &  targetNS 
)
inline

output XSD to the stream , targetting XML namespace targetNS

References xsd_generate_t::rootName.


The documentation for this class was generated from the following file: