hello-pskel.cxx hello-pskel.hxx //Copyright(C)2005-2008CodeSynthesisToolsCC // //ThisprogramwasgeneratedbyCodeSynthesisXSD,anXMLSchemato //C++databindingcompiler. // //Thisprogramisfreesoftware;youcanredistributeitand/ormodify //itunderthetermsoftheGNUGeneralPublicLicenseversion2as //publishedbytheFreeSoftwareFoundation. // //Thisprogramisdistributedinthehopethatitwillbeuseful, //butWITHOUTANYWARRANTY;withouteventheimpliedwarrantyof //MERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.Seethe //GNUGeneralPublicLicenseformoredetails. // //YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense //alongwiththisprogram;ifnot,writetotheFreeSoftware //Foundation,Inc.,51FranklinSt,FifthFloor,Boston,MA02110-1301USA // //Inaddition,asaspecialexception,CodeSynthesisToolsCCgives //permissiontolinkthisprogramwiththeXerces-C++library(orwith //modifiedversionsofXerces-C++thatusethesamelicenseasXerces-C++), //anddistributelinkedcombinationsincludingthetwo.Youmustobey //theGNUGeneralPublicLicenseversion2inallrespectsforallof //thecodeusedotherthanXerces-C++.Ifyoumodifythiscopyofthe //program,youmayextendthisexceptiontoyourversionoftheprogram, //butyouarenotobligatedtodoso.Ifyoudonotwishtodoso,delete //thisexceptionstatementfromyourversion. // //Furthermore,CodeSynthesisToolsCCmakesaspecialexceptionfor //theFree/LibreandOpenSourceSoftware(FLOSS)whichisdescribed //intheaccompanyingFLOSSEfile. // //Beginprologue. // // //Endprologue. #include"hello-pskel.hxx" //hello_pskel // voidhello_pskel:: greeting_parser(::xml_schema::string_pskel&p) { this->greeting_=&p; } voidhello_pskel:: name_parser(::xml_schema::string_pskel&p) { this->name_=&p; } voidhello_pskel:: parsers(::xml_schema::string_pskel&greeting, ::xml_schema::string_pskel&name) { this->greeting_=&greeting; this->name_=&name; } hello_pskel:: hello_pskel() :greeting_(0), name_(0) { } //hello_pskel // voidhello_pskel:: greeting(const::std::string&) { } voidhello_pskel:: name(const::std::string&) { } voidhello_pskel:: post_hello() { } boolhello_pskel:: _start_element_impl(const::xml_schema::ro_string&ns, const::xml_schema::ro_string&n, const::xml_schema::ro_string*t) { while(&t==0)/*mightbeunused*/; if(this->::xml_schema::complex_content::_start_element_impl(ns,n,t)) returntrue; if(n=="greeting"&&ns.empty()) { this->::xml_schema::complex_content::context_.top().parser_=this->greeting_; if(this->greeting_) this->greeting_->pre(); returntrue; } if(n=="name"&&ns.empty()) { this->::xml_schema::complex_content::context_.top().parser_=this->name_; if(this->name_) this->name_->pre(); returntrue; } returnfalse; } boolhello_pskel:: _end_element_impl(const::xml_schema::ro_string&ns, const::xml_schema::ro_string&n) { if(this->::xml_schema::complex_content::_end_element_impl(ns,n)) returntrue; if(n=="greeting"&&ns.empty()) { if(this->greeting_) this->greeting(this->greeting_->post_string()); returntrue; } if(n=="name"&&ns.empty()) { if(this->name_) this->name(this->name_->post_string()); returntrue; } returnfalse; } //Beginepilogue. // // //Endepilogue.