Ignore build doc files
[libgno.git] / src / libgno / Document.cpp
1
2  //
3  //  This file was automatically generated using XmlPlus xsd2cpp tool.
4  //  Please do not edit.
5  //
6   
7 #include "libgno/Document.h"
8
9
10 namespace libgno  {
11     
12
13   ///constructor for the Document node
14   Document::Document(bool buildTree_, bool createSample_):
15     XMLSchema::TDocument(buildTree_, createSample_)
16   {
17     initFSM();
18     DOM::Document::attributeDefaultQualified(false);
19     DOM::Document::elementDefaultQualified(true);
20     
21     if(buildTree()) 
22     {
23       
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;
28       }
29       _fsm->processEventThrow(event); 
30       
31     }
32     
33   }
34
35   void Document::initFSM()
36   {
37   
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));
39   
40     XsdFsmBasePtr elemFsms[] = {
41     _fsm_GenoPro,
42       
43       NULL
44     };
45     XsdFsmBasePtr fofElem = new XsdFsmOfFSMs(elemFsms, XsdFsmOfFSMs::CHOICE);
46     
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);
50   }
51
52   
53
54
55   /* element functions  */
56   
57
58   GenoPro_ptr Document::create_GenoPro(FsmCbOptions& options)
59   {
60     static DOMStringPtr myName = new DOMString("GenoPro");
61     static DOMStringPtr myNsUri = new DOMString("libgno");
62     
63     XSD::StructCreateElementThroughFsm t( myName, myNsUri, NULL, this, this, _fsm, options, false, false, false);
64     GenoPro_p node = XSD::createElementTmpl<GenoPro, void*>(t);
65           
66     _GenoPro = node;
67       
68     return node;
69   }
70
71   
72   GenoPro_p Document::element_GenoPro()
73   {
74     FSM::warnNullNode(_GenoPro, "GenoPro", "{}GenoPro", 1);
75     return _GenoPro;
76   }
77     
78 } // end namespace libgno