modifier.hpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 : parameter modifiers
  12. // ***************************************************************************
  13. #ifndef BOOST_RT_CLA_MODIFIER_HPP_062604GER
  14. #define BOOST_RT_CLA_MODIFIER_HPP_062604GER
  15. // Boost.Runtime.Parameter
  16. #include <boost/test/utils/runtime/config.hpp>
  17. // Boost.Test
  18. #include <boost/test/utils/named_params.hpp>
  19. namespace boost {
  20. namespace BOOST_RT_PARAM_NAMESPACE {
  21. namespace cla {
  22. // ************************************************************************** //
  23. // ************** environment variable modifiers ************** //
  24. // ************************************************************************** //
  25. namespace {
  26. nfp::typed_keyword<bool,struct optional_t> optional_m;
  27. nfp::named_parameter<bool,optional_t,bool> optional( true );
  28. nfp::typed_keyword<bool,struct required_t> required_m;
  29. nfp::named_parameter<bool,required_t,bool> required( true );
  30. nfp::typed_keyword<bool,struct multiplicable_t> multiplicable_m;
  31. nfp::named_parameter<bool,multiplicable_t,bool> multiplicable( true );
  32. nfp::typed_keyword<bool,struct guess_name_t> guess_name_m;
  33. nfp::named_parameter<bool,guess_name_t,bool> guess_name( true );
  34. nfp::typed_keyword<bool,struct ignore_mismatch_t> ignore_mismatch_m;
  35. nfp::named_parameter<bool,ignore_mismatch_t,bool> ignore_mismatch( true );
  36. nfp::typed_keyword<bool,struct optional_value_t> optional_value_m;
  37. nfp::named_parameter<bool,optional_value_t,bool> optional_value( true );
  38. nfp::typed_keyword<char_type,struct input_separator_t> input_separator;
  39. nfp::typed_keyword<cstring,struct prefix_t> prefix;
  40. nfp::typed_keyword<cstring,struct name_t> name;
  41. nfp::typed_keyword<cstring,struct separator_t> separator;
  42. nfp::typed_keyword<cstring,struct description_t> description;
  43. nfp::typed_keyword<cstring,struct refer_to_t> default_refer_to;
  44. nfp::keyword<struct default_value_t> default_value;
  45. nfp::keyword<struct handler_t> handler;
  46. nfp::keyword<struct interpreter_t> interpreter;
  47. nfp::keyword<struct assign_to_t> assign_to;
  48. } // local namespace
  49. } // namespace cla
  50. } // namespace BOOST_RT_PARAM_NAMESPACE
  51. } // namespace boost
  52. #endif // BOOST_RT_CLA_MODIFIER_HPP_062604GER