Chris@16
|
1 // (C) Copyright Gennadiy Rozental 2005-2008.
|
Chris@16
|
2 // Use, modification, and distribution are subject to the
|
Chris@16
|
3 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5
|
Chris@16
|
6 // See http://www.boost.org/libs/test for the library home page.
|
Chris@16
|
7 //
|
Chris@16
|
8 // File : $RCSfile$
|
Chris@16
|
9 //
|
Chris@101
|
10 // Version : $Revision$
|
Chris@16
|
11 //
|
Chris@16
|
12 // Description : implements model of parameter with single char name
|
Chris@16
|
13 // ***************************************************************************
|
Chris@16
|
14
|
Chris@16
|
15 #ifndef BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
|
Chris@16
|
16 #define BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
|
Chris@16
|
17
|
Chris@16
|
18 // Boost.Runtime.Parameter
|
Chris@16
|
19 #include <boost/test/utils/runtime/config.hpp>
|
Chris@16
|
20
|
Chris@16
|
21 #include <boost/test/utils/runtime/cla/char_parameter.hpp>
|
Chris@16
|
22
|
Chris@16
|
23 namespace boost {
|
Chris@16
|
24
|
Chris@16
|
25 namespace BOOST_RT_PARAM_NAMESPACE {
|
Chris@16
|
26
|
Chris@16
|
27 namespace cla {
|
Chris@16
|
28
|
Chris@16
|
29 // ************************************************************************** //
|
Chris@16
|
30 // ************** char_name_policy ************** //
|
Chris@16
|
31 // ************************************************************************** //
|
Chris@16
|
32
|
Chris@16
|
33 BOOST_RT_PARAM_INLINE
|
Chris@16
|
34 char_name_policy::char_name_policy()
|
Chris@16
|
35 : basic_naming_policy( rtti::type_id<char_name_policy>() )
|
Chris@16
|
36 {
|
Chris@16
|
37 assign_op( p_prefix.value, BOOST_RT_PARAM_CSTRING_LITERAL( "-" ), 0 );
|
Chris@16
|
38 }
|
Chris@16
|
39
|
Chris@16
|
40 //____________________________________________________________________________//
|
Chris@16
|
41
|
Chris@16
|
42 BOOST_RT_PARAM_INLINE bool
|
Chris@16
|
43 char_name_policy::conflict_with( identification_policy const& id ) const
|
Chris@16
|
44 {
|
Chris@16
|
45 return id.p_type_id == p_type_id &&
|
Chris@16
|
46 p_name == static_cast<char_name_policy const&>( id ).p_name;
|
Chris@16
|
47 }
|
Chris@16
|
48
|
Chris@16
|
49 //____________________________________________________________________________//
|
Chris@16
|
50
|
Chris@16
|
51 } // namespace cla
|
Chris@16
|
52
|
Chris@16
|
53 } // namespace BOOST_RT_PARAM_NAMESPACE
|
Chris@16
|
54
|
Chris@16
|
55 } // namespace boost
|
Chris@16
|
56
|
Chris@16
|
57 #endif // BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
|