diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-13 15:38:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-13 15:38:11 +0200 |
commit | 6f395f9f769866a04f6949cb7ed14f93d90cf728 (patch) | |
tree | d1f8343e7b41fc1895676ad4248a5e4942f9172b /libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx | |
parent | c1f49aa87678c512ac37575365a6676727e5f20a (diff) |
Map anySimpleType to a string
Diffstat (limited to 'libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx')
-rw-r--r-- | libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx b/libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx new file mode 100644 index 0000000..f7f16c9 --- /dev/null +++ b/libxsde/xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx @@ -0,0 +1,35 @@ +// file : xsde/cxx/serializer/non-validating/any-simple-type-stl.cxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <xsde/cxx/serializer/non-validating/any-simple-type-stl.hxx> + +namespace xsde +{ + namespace cxx + { + namespace serializer + { + namespace non_validating + { + void any_simple_type_simpl:: + pre (const std::string& value) + { + value_ = value; + } + + void any_simple_type_simpl:: + _serialize_content () + { + // Make sure we don't hold any references to the string. + // + std::string tmp; + tmp.swap (value_); + + _characters (tmp.c_str (), tmp.size ()); + } + } + } + } +} |