1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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$
|