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)
6
// See http://www.boost.org/libs/test for the library home page.
10
// Version : $Revision: 57992 $
12
// Description : defines interface for identification_policy
13
// ***************************************************************************
15
#ifndef BOOST_RT_CLA_IFACE_ID_POLICY_HPP_062604GER
16
#define BOOST_RT_CLA_IFACE_ID_POLICY_HPP_062604GER
18
// Boost.Runtime.Parameter
19
#include <boost/test/utils/runtime/config.hpp>
21
#include <boost/test/utils/runtime/cla/fwd.hpp>
24
#include <boost/test/utils/class_properties.hpp>
25
#include <boost/test/utils/rtti.hpp>
29
namespace BOOST_RT_PARAM_NAMESPACE {
33
// ************************************************************************** //
34
// ************** identification_policy ************** //
35
// ************************************************************************** //
38
# pragma warning(push)
39
# pragma warning(disable:4244)
42
class identification_policy {
45
unit_test::readwrite_property<rtti::id_t> p_type_id;
48
virtual bool responds_to( cstring name ) const = 0;
49
virtual cstring id_2_report() const = 0;
50
virtual void usage_info( format_stream& fs ) const = 0;
51
virtual bool matching( parameter const& p, argv_traverser& tr, bool primary ) const = 0;
53
virtual bool conflict_with( identification_policy const& ) const = 0;
57
explicit identification_policy( rtti::id_t dyn_type )
58
: p_type_id( dyn_type )
60
BOOST_TEST_PROTECTED_VIRTUAL ~identification_policy() {}
69
} // namespace BOOST_RT_PARAM_NAMESPACE
73
#endif // BOOST_RT_CLA_IFACE_ID_POLICY_HPP_062604GER