3 // This file was automatically generated using XmlPlus xsd2cpp tool.
7 #include "libgno/Document.h"
13 ///constructor for the Document node
14 Document::Document(bool buildTree_, bool createSample_):
15 XMLSchema::TDocument(buildTree_, createSample_)
18 DOM::Document::attributeDefaultQualified(false);
19 DOM::Document::elementDefaultQualified(true);
24 DOMStringPtr nsUriPtr = new DOMString("libgno");
25 XsdEvent event(nsUriPtr, NULL, DOMString("GenoPro"), XsdEvent::ELEMENT_START);
26 if(this->createSample()) {
27 event.cbOptions.isSampleCreate = true;
29 _fsm->processEventThrow(event);
35 void Document::initFSM()
38 _fsm_GenoPro = new XsdFSM<GenoPro_ptr>( Particle(new DOMString("libgno"), DOMString("GenoPro"), 1, 1), XsdEvent::ELEMENT_START, new object_unary_mem_fun_t<GenoPro_ptr, Document, FsmCbOptions>(this, &Document::create_GenoPro));
40 XsdFsmBasePtr elemFsms[] = {
45 XsdFsmBasePtr fofElem = new XsdFsmOfFSMs(elemFsms, XsdFsmOfFSMs::CHOICE);
47 XsdFsmBasePtr docEndFsm = new XsdFSM<void *>(Particle(NULL, "", 1, 1), XsdEvent::DOCUMENT_END);
48 XsdFsmBasePtr ptrFsms[] = { fofElem, docEndFsm, NULL };
49 _fsm = new XsdFsmOfFSMs(ptrFsms, XsdFsmOfFSMs::SEQUENCE);
55 /* element functions */
58 GenoPro_ptr Document::create_GenoPro(FsmCbOptions& options)
60 static DOMStringPtr myName = new DOMString("GenoPro");
61 static DOMStringPtr myNsUri = new DOMString("libgno");
63 XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this, this, _fsm, options, false, false, false);
64 GenoPro_p node = XSD::createElementTmpl<GenoPro, void*>(t);
72 GenoPro_p Document::element_GenoPro()
74 FSM::warnNullNode(_GenoPro, "GenoPro", "{}GenoPro", 1);
78 } // end namespace libgno