blob: 3b1db637baa8e4aca67972880864b56562cd0a87 [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001// (C) Copyright Gennadiy Rozental 2005-2008.
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$
9//
10// Version : $Revision: 54633 $
11//
12// Description : implements model of parameter with single char name
13// ***************************************************************************
14
Jeff Thompson3d613fd2013-10-15 15:39:04 -070015#ifndef NDNBOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
16#define NDNBOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070017
18// Boost.Runtime.Parameter
19#include <ndnboost/test/utils/runtime/config.hpp>
20
21#include <ndnboost/test/utils/runtime/cla/char_parameter.hpp>
22
23namespace ndnboost {
24
Jeff Thompson3d613fd2013-10-15 15:39:04 -070025namespace NDNBOOST_RT_PARAM_NAMESPACE {
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070026
27namespace cla {
28
29// ************************************************************************** //
30// ************** char_name_policy ************** //
31// ************************************************************************** //
32
Jeff Thompson3d613fd2013-10-15 15:39:04 -070033NDNBOOST_RT_PARAM_INLINE
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070034char_name_policy::char_name_policy()
35: basic_naming_policy( rtti::type_id<char_name_policy>() )
36{
Jeff Thompson3d613fd2013-10-15 15:39:04 -070037 assign_op( p_prefix.value, NDNBOOST_RT_PARAM_CSTRING_LITERAL( "-" ), 0 );
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070038}
39
40//____________________________________________________________________________//
41
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042NDNBOOST_RT_PARAM_INLINE bool
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070043char_name_policy::conflict_with( identification_policy const& id ) const
44{
45 return id.p_type_id == p_type_id &&
46 p_name == static_cast<char_name_policy const&>( id ).p_name;
47}
48
49//____________________________________________________________________________//
50
51} // namespace cla
52
Jeff Thompson3d613fd2013-10-15 15:39:04 -070053} // namespace NDNBOOST_RT_PARAM_NAMESPACE
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070054
55} // namespace ndnboost
56
Jeff Thompson3d613fd2013-10-15 15:39:04 -070057#endif // NDNBOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER