4
Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
6
This program is free software; you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by the
8
Free Software Foundation; either version 2 of the License, or (at your
9
option) any later version.
11
This program is distributed in the hope that it will be useful, but WITHOUT
12
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
contact: plee-the-bear@gamned.org
22
Please add the tag [Bear] in the subject of your mails.
25
* \file boolean_constant_creator.cpp
26
* \brief Implementation of the bear::boolean_constant_creator class.
27
* \author S�bastien Angibaud
29
#include "generic_items/expr/boolean_constant_creator.hpp"
31
#include <claw/logger.hpp>
33
BASE_ITEM_EXPORT( boolean_constant_creator, bear )
35
/*----------------------------------------------------------------------------*/
37
* \brief Set a field of type <boolean>.
39
bear::boolean_constant_creator::boolean_constant_creator()
43
} // boolean_constant_creator::boolean_constant_creator()
45
/*----------------------------------------------------------------------------*/
47
* \brief Set a field of type <boolean>.
48
* \param name The name of the field.
49
* \param value The value of the field.
51
bool bear::boolean_constant_creator::set_bool_field
52
( const std::string& name, bool value )
56
if ( name == "boolean_constant_creator.value" )
57
m_expr.set_value( value );
59
result = super::set_bool_field(name, value);
62
} // boolean_constant_creator::set_bool_field()
64
/*----------------------------------------------------------------------------*/
66
* \brief Initialize the item.
68
void bear::boolean_constant_creator::build()
71
} // boolean_constant_creator::build()
73
/*----------------------------------------------------------------------------*/
75
* \brief Get the expression created by this item.
77
bear::expr::boolean_expression
78
bear::boolean_constant_creator::do_get_expression() const
81
} // boolean_constant_creator::do_get_expression()