Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 1 | // (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 | |
| 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 <ndnboost/test/utils/runtime/config.hpp> |
| 20 | |
| 21 | #include <ndnboost/test/utils/runtime/cla/char_parameter.hpp> |
| 22 | |
| 23 | namespace ndnboost { |
| 24 | |
| 25 | namespace BOOST_RT_PARAM_NAMESPACE { |
| 26 | |
| 27 | namespace cla { |
| 28 | |
| 29 | // ************************************************************************** // |
| 30 | // ************** char_name_policy ************** // |
| 31 | // ************************************************************************** // |
| 32 | |
| 33 | BOOST_RT_PARAM_INLINE |
| 34 | char_name_policy::char_name_policy() |
| 35 | : basic_naming_policy( rtti::type_id<char_name_policy>() ) |
| 36 | { |
| 37 | assign_op( p_prefix.value, BOOST_RT_PARAM_CSTRING_LITERAL( "-" ), 0 ); |
| 38 | } |
| 39 | |
| 40 | //____________________________________________________________________________// |
| 41 | |
| 42 | BOOST_RT_PARAM_INLINE bool |
| 43 | char_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 | |
| 53 | } // namespace BOOST_RT_PARAM_NAMESPACE |
| 54 | |
| 55 | } // namespace ndnboost |
| 56 | |
| 57 | #endif // BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER |