source: NonGTP/Boost/boost/test/utils/runtime/cla/char_parameter.ipp @ 857

Revision 857, 2.2 KB checked in by igarcia, 18 years ago (diff)
Line 
1//  (C) Copyright Gennadiy Rozental 2005.
2//  Use, modification, and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/test for the library home page.
7//
8//  File        : $RCSfile: char_parameter.ipp,v $
9//
10//  Version     : $Revision: 1.2 $
11//
12//  Description : implements model of parameter with single char name
13// ***************************************************************************
14
15#ifndef BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
16#define BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
17
18// Boost.Runtime.Parameter
19#include <boost/test/utils/runtime/config.hpp>
20
21#include <boost/test/utils/runtime/cla/char_parameter.hpp>
22
23namespace boost {
24
25namespace BOOST_RT_PARAM_NAMESPACE {
26
27namespace cla {
28
29// ************************************************************************** //
30// **************               char_name_policy               ************** //
31// ************************************************************************** //
32
33BOOST_RT_PARAM_INLINE
34char_name_policy::char_name_policy()
35: basic_naming_policy( rtti::type_id<char_name_policy>() )
36{
37    assign_op( m_prefix, BOOST_RT_PARAM_CSTRING_LITERAL( "-" ), 0 );
38}
39
40//____________________________________________________________________________//
41
42BOOST_RT_PARAM_INLINE bool
43char_name_policy::conflict_with( identification_policy const& id ) const
44{
45    return id.p_type_id == p_type_id &&
46           m_name == static_cast<char_name_policy const&>( id ).m_name;
47}
48
49//____________________________________________________________________________//
50
51} // namespace cla
52
53} // namespace BOOST_RT_PARAM_NAMESPACE
54
55} // namespace boost
56
57// ************************************************************************** //
58//   Revision History:
59//
60//   $Log: char_parameter.ipp,v $
61//   Revision 1.2  2005/04/12 07:01:36  rogeeff
62//   exclude polymorphic_downcast
63//
64//   Revision 1.1  2005/04/12 06:42:43  rogeeff
65//   Runtime.Param library initial commit
66//
67// ************************************************************************** //
68
69#endif // BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
Note: See TracBrowser for help on using the repository browser.