diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-24 15:16:26 +0200 |
commit | 707cc94fe52463870a9c6c8e2e66eaaa389e601d (patch) | |
tree | 13e10ff28bf4455d915f9d59b401bdbb62a393cb /tests/cxx/serializer/test-template/driver.cxx |
Start tracking XSD/e with git after version 3.0.03.0.0
Diffstat (limited to 'tests/cxx/serializer/test-template/driver.cxx')
-rw-r--r-- | tests/cxx/serializer/test-template/driver.cxx | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/cxx/serializer/test-template/driver.cxx b/tests/cxx/serializer/test-template/driver.cxx new file mode 100644 index 0000000..784f223 --- /dev/null +++ b/tests/cxx/serializer/test-template/driver.cxx @@ -0,0 +1,48 @@ +// file : tests/cxx/serializer/test-template/driver.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +// Insert test description here. +// + +#include <iostream> + +#include "test-sskel.hxx" + +using namespace std; +using namespace test; + +struct root_simpl: root_sskel +{ + virtual void + pre () + { + } + + virtual int + a () + { + return 1234; + } + + virtual void + post_type () + { + } +}; + +int +main () +{ + xml_schema::int_simpl int_s; + root_simpl root_s; + + root_s.serializers (int_s); + + xml_schema::document_simpl doc_s (root_s, "test", "root"); + + root_s.pre (); + doc_s.serialize (cout); + root_s.post (); +} |