diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-08 15:54:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-08 15:54:12 +0200 |
commit | 65cfe4bb8b504749a4d199b258f5f5254a08ed64 (patch) | |
tree | dbb05ed29c955aa8580438ca503d0360df9c9e32 /libxsd/xsd/cxx/tree/elements.hxx | |
parent | 1381dc5688ce16369c2153ac554b9f75511fe670 (diff) |
Add support for default values of anySimpleType type
Diffstat (limited to 'libxsd/xsd/cxx/tree/elements.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/elements.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libxsd/xsd/cxx/tree/elements.hxx b/libxsd/xsd/cxx/tree/elements.hxx index 7489872..403fdb3 100644 --- a/libxsd/xsd/cxx/tree/elements.hxx +++ b/libxsd/xsd/cxx/tree/elements.hxx @@ -982,9 +982,15 @@ namespace xsd /** * @brief Default constructor. */ - simple_type () - { - } + simple_type (); + + /** + * @brief Create an instance from a string. + * + * @param s A string to initialize the instance with. + */ + template <typename C> + simple_type (const C* s); public: /** @@ -1478,6 +1484,7 @@ namespace xsd } } +#include <xsd/cxx/tree/elements.ixx> #include <xsd/cxx/tree/elements.txx> #endif // XSD_CXX_TREE_ELEMENTS_HXX |