Add some files to .gitignore
[libgno.git] / main.cpp
1
2  //
3  //  This file was automatically generated using XmlPlus xsd2cpp tool.
4  //  On subsequent "xsd2cpp" invocations, this file would not be overwritten.
5  //  You can edit this file.
6  //
7   
8 #include <iostream>
9 #include <string>
10
11 #include "XSD/UserOps.h"
12 #include "libgno/all-include.h"
13
14 void populateDocument(libgno::Document* xsdDoc);
15 void updateOrConsumeDocument(libgno::Document* xsdDoc);
16     
17
18 int main (int argc, char** argv)
19 {
20   XSD::UserOps<libgno::Document>::UserOpsCbStruct cbStruct;
21   cbStruct.cbPopulateDocument           =  populateDocument;
22   cbStruct.cbUpdateOrConsumeDocument    =  updateOrConsumeDocument;
23   
24
25   XSD::UserOps<libgno::Document> opHandle(cbStruct);
26   opHandle.run(argc, argv);
27 }
28
29 //
30 // Following functions are use case templates.
31 // You need to put "code" in the respective contexts.
32 //
33
34     
35
36 // template function to populate the Tree with values
37 // write code to populate the Document here ...
38 void populateDocument(libgno::Document* xsdDoc)
39 {
40
41 }
42
43 // write code to operate(update/consume/test etc.) on the Document here...
44 // This Document is typically already populated(eg. read from an input
45 // xml file)
46 void updateOrConsumeDocument(libgno::Document* xsdDoc)
47 {
48
49 }
50
51