summaryrefslogtreecommitdiff
path: root/xsd-examples/cxx/parser/mixin/types.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-18 18:48:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-24 22:20:33 +0300
commita8ce5c380c69539fe0c7c62c397634d9d0c9fde2 (patch)
treec8db5c9b99416ca4686af953387f474af15bc92e /xsd-examples/cxx/parser/mixin/types.hxx
parent7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff)
Switch to build2
Diffstat (limited to 'xsd-examples/cxx/parser/mixin/types.hxx')
-rw-r--r--xsd-examples/cxx/parser/mixin/types.hxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/xsd-examples/cxx/parser/mixin/types.hxx b/xsd-examples/cxx/parser/mixin/types.hxx
new file mode 100644
index 0000000..887b29e
--- /dev/null
+++ b/xsd-examples/cxx/parser/mixin/types.hxx
@@ -0,0 +1,43 @@
+// file : cxx/parser/mixin/types.hxx
+// copyright : not copyrighted - public domain
+
+#ifndef TYPES_HXX
+#define TYPES_HXX
+
+struct base
+{
+ bool
+ a () const
+ {
+ return a_;
+ }
+
+ void
+ a (bool v)
+ {
+ a_ = v;
+ }
+
+private:
+ bool a_;
+};
+
+struct derived: base
+{
+ int
+ b () const
+ {
+ return b_;
+ }
+
+ void
+ b (int v)
+ {
+ b_ = v;
+ }
+
+private:
+ int b_;
+};
+
+#endif // TYPES_HXX