summaryrefslogtreecommitdiff
path: root/trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp')
-rw-r--r--trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp71
1 files changed, 71 insertions, 0 deletions
diff --git a/trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp b/trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp
new file mode 100644
index 00000000000..a4c798d97cb
--- /dev/null
+++ b/trunk/ACE/contrib/utility/Utility/ExH/Compound.tpp
@@ -0,0 +1,71 @@
+// file : Utility/ExH/Compound.tpp
+// author : Boris Kolpackov <boris@kolpackov.net>
+// copyright : Copyright (c) 2002-2003 Boris Kolpackov
+// license : http://kolpackov.net/license.html
+
+#include "Utility/ExH/Converter.hpp"
+
+namespace Utility
+{
+ namespace ExH
+ {
+ // c-tor's & d-tor
+ template <typename Type, typename Base>
+ Compound<Type, Base>::
+ Compound () throw ()
+ {
+ }
+
+ template <typename Type, typename Base>
+ Compound<Type, Base>::
+ Compound (char const* description) throw ()
+ {
+ Base::init (description);
+ }
+
+ template <typename Type, typename Base>
+ Compound<Type, Base>::
+ Compound (std::string const& description) throw ()
+ {
+ try
+ {
+ Base::init (description.c_str ());
+ }
+ catch (...)
+ {
+ }
+ }
+
+ template <typename Type, typename Base>
+ template <typename T>
+ Compound<Type, Base>::
+ Compound (T const& description) throw ()
+ {
+ Base::init (converter<T> (description).c_str ());
+ }
+
+ template <typename Type, typename Base>
+ Compound<Type, Base>::
+ Compound (Compound const& src) throw ()
+ {
+ Base::init (src.what ());
+ }
+
+ template <typename Type, typename Base>
+ Compound<Type, Base>::
+ ~Compound () throw ()
+ {
+ }
+
+ // operator=
+
+ template <typename Type, typename Base>
+ Compound<Type, Base>& Compound<Type, Base>::
+ operator= (Compound const& src) throw ()
+ {
+ Base::init (src.what ());
+ return *this;
+ }
+ }
+}
+//$Id$