diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2025-05-02 07:42:02 +0200 | 
| commit | fc486627a4ecbae797fa6856d8a9204ea85f4db8 (patch) | |
| tree | ff3dae4c0e5d980d8e2da4fc6256ae839269bbcd /xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx | |
| parent | 1c188393cd2e271ed2581471b601fb5960777fd8 (diff) | |
| parent | ecba0bbd9947036dd82f16ab95252f8db445e149 (diff) | |
Merge tag 'debian/4.0.0-10' into developdevelop
Bugfix release
Diffstat (limited to 'xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx')
| -rw-r--r-- | xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx | 85 | 
1 files changed, 85 insertions, 0 deletions
diff --git a/xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx b/xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx new file mode 100644 index 0000000..62289e9 --- /dev/null +++ b/xsd/examples/cxx/parser/polyroot/supermen-pimpl.cxx @@ -0,0 +1,85 @@ +// file      : examples/cxx/parser/polyroot/supermen-pimpl.cxx +// copyright : not copyrighted - public domain +// + +#include <iostream> + +#include "supermen-pimpl.hxx" + +using std::cout; +using std::endl; + +// person_pimpl +// +void person_pimpl:: +pre () +{ +  cout << "starting to parse person" << endl; +} + +void person_pimpl:: +name (const std::string& v) +{ +  cout << "name: " << v << endl; +} + +void person_pimpl:: +post_person () +{ +  cout << "finished parsing person" << endl +       << endl; +} + +// superman_pimpl +// +void superman_pimpl:: +pre () +{ +  cout << "starting to parse superman" << endl; +} + +void superman_pimpl:: +can_fly (bool v) +{ +  cout << "can-fly: " << v << endl; +} + +void superman_pimpl:: +post_person () +{ +  post_superman (); +} + +void superman_pimpl:: +post_superman () +{ +  cout << "finished parsing superman" << endl +       << endl; +} + +// batman_pimpl +// +void batman_pimpl:: +pre () +{ +  cout << "starting to parse batman" << endl; +} + +void batman_pimpl:: +wing_span (unsigned int v) +{ +  cout << "wing-span: " << v << endl; +} + +void batman_pimpl:: +post_superman () +{ +  post_batman (); +} + +void batman_pimpl:: +post_batman () +{ +  cout << "finished parsing batman" << endl +       << endl; +}  | 
