aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/wildcard/body.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-02-24 15:16:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-02-24 15:16:26 +0200
commit707cc94fe52463870a9c6c8e2e66eaaa389e601d (patch)
tree13e10ff28bf4455d915f9d59b401bdbb62a393cb /examples/cxx/hybrid/wildcard/body.cxx
Start tracking XSD/e with git after version 3.0.03.0.0
Diffstat (limited to 'examples/cxx/hybrid/wildcard/body.cxx')
-rw-r--r--examples/cxx/hybrid/wildcard/body.cxx26
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/wildcard/body.cxx b/examples/cxx/hybrid/wildcard/body.cxx
new file mode 100644
index 0000000..e6bd164
--- /dev/null
+++ b/examples/cxx/hybrid/wildcard/body.cxx
@@ -0,0 +1,26 @@
+// file : examples/cxx/hybrid/wildcard/body.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : not copyrighted - public domain
+
+#include "body.hxx"
+
+namespace email
+{
+ void body::
+ body_type (body::type t)
+ {
+ if (body_type_ == type_binary)
+ {
+ delete binary_;
+ binary_ = 0;
+ }
+
+ body_type_ = t;
+ }
+
+ void
+ destroy_body (void* p, size_t)
+ {
+ delete static_cast<body*> (p);
+ }
+}