source: NonGTP/Boost/boost/test/utils/runtime/cla/value_handler.hpp @ 857

Revision 857, 1.9 KB checked in by igarcia, 18 years ago (diff)
Line 
1//  (C) Copyright Gennadiy Rozental 2005.
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: value_handler.hpp,v $
9//
10//  Version     : $Revision: 1.1 $
11//
12//  Description : specific value handlers
13// ***************************************************************************
14
15#ifndef BOOST_RT_CLA_VALUE_HANDLER_HPP_062604GER
16#define BOOST_RT_CLA_VALUE_HANDLER_HPP_062604GER
17
18// Boost.Runtime.Parameter
19#include <boost/test/utils/runtime/config.hpp>
20
21#include <boost/test/utils/runtime/cla/fwd.hpp>
22
23namespace boost {
24
25namespace BOOST_RT_PARAM_NAMESPACE {
26
27namespace cla {
28
29namespace rt_cla_detail {
30
31// ************************************************************************** //
32// **************            runtime::cla::assigner            ************** //
33// ************************************************************************** //
34
35template<typename T>
36class assigner {
37public:
38    // Constructor
39    explicit    assigner( T& loc ) : m_target( loc )    {}
40
41    // value handler implementation
42    void        operator()( parameter const&, T& t )  { m_target = t; }
43
44private:
45    // Data members
46    T&          m_target;
47};
48
49} // namespace rt_cla_detail
50
51} // namespace cla
52
53} // namespace BOOST_RT_PARAM_NAMESPACE
54
55} // namespace boost
56
57// ************************************************************************** //
58//   Revision History:
59//
60//   $Log: value_handler.hpp,v $
61//   Revision 1.1  2005/04/12 06:42:43  rogeeff
62//   Runtime.Param library initial commit
63//
64// ************************************************************************** //
65
66#endif // BOOST_RT_CLA_VALUE_HANDLER_HPP_062604GER
Note: See TracBrowser for help on using the repository browser.