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.
11 #include "XSD/UserOps.h"
12 #include "libgno/all-include.h"
14 void populateDocument(libgno::Document* xsdDoc);
15 void updateOrConsumeDocument(libgno::Document* xsdDoc);
18 int main (int argc, char** argv)
20 XSD::UserOps<libgno::Document>::UserOpsCbStruct cbStruct;
21 cbStruct.cbPopulateDocument = populateDocument;
22 cbStruct.cbUpdateOrConsumeDocument = updateOrConsumeDocument;
25 XSD::UserOps<libgno::Document> opHandle(cbStruct);
26 opHandle.run(argc, argv);
30 // Following functions are use case templates.
31 // You need to put "code" in the respective contexts.
36 // template function to populate the Tree with values
37 // write code to populate the Document here ...
38 void populateDocument(libgno::Document* xsdDoc)
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
46 void updateOrConsumeDocument(libgno::Document* xsdDoc)