char_parameter.ipp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. // File : $RCSfile$
  8. //
  9. // Version : $Revision: 54633 $
  10. //
  11. // Description : implements model of parameter with single char name
  12. // ***************************************************************************
  13. #ifndef BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
  14. #define BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER
  15. // Boost.Runtime.Parameter
  16. #include <boost/test/utils/runtime/config.hpp>
  17. #include <boost/test/utils/runtime/cla/char_parameter.hpp>
  18. namespace boost {
  19. namespace BOOST_RT_PARAM_NAMESPACE {
  20. namespace cla {
  21. // ************************************************************************** //
  22. // ************** char_name_policy ************** //
  23. // ************************************************************************** //
  24. BOOST_RT_PARAM_INLINE
  25. char_name_policy::char_name_policy()
  26. : basic_naming_policy( rtti::type_id<char_name_policy>() )
  27. {
  28. assign_op( p_prefix.value, BOOST_RT_PARAM_CSTRING_LITERAL( "-" ), 0 );
  29. }
  30. //____________________________________________________________________________//
  31. BOOST_RT_PARAM_INLINE bool
  32. char_name_policy::conflict_with( identification_policy const& id ) const
  33. {
  34. return id.p_type_id == p_type_id &&
  35. p_name == static_cast<char_name_policy const&>( id ).p_name;
  36. }
  37. //____________________________________________________________________________//
  38. } // namespace cla
  39. } // namespace BOOST_RT_PARAM_NAMESPACE
  40. } // namespace boost
  41. #endif // BOOST_RT_CLA_CHAR_PARAMETER_IPP_062904GER