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 string_to_arg.hpp
26
* \brief Specialisation of text_interface::string_to_arg to pass special
28
* \author Julien Jorge
30
#ifndef __ENGINE_STRING_TO_ARG_HPP__
31
#define __ENGINE_STRING_TO_ARG_HPP__
33
#include "engine/class_export.hpp"
35
#include "engine/script/script_context.hpp"
36
#include "engine/script/script_runner.hpp"
37
#include "text_interface/string_to_arg.hpp"
41
namespace text_interface
44
* \brief Get a const base item from its name in the script.
45
* \author Julien Jorge
48
class ENGINE_EXPORT string_to_arg
49
<bear::engine::script_context, const bear::engine::base_item&>
52
static const bear::engine::base_item& convert
53
( const bear::engine::script_context& c, const std::string& arg );
55
}; // class string_to_arg
58
* \brief Get a base item from its name in the script.
59
* \author Julien Jorge
62
class ENGINE_EXPORT string_to_arg
63
<bear::engine::script_context, bear::engine::base_item&>
66
static bear::engine::base_item& convert
67
( const bear::engine::script_context& c, const std::string& arg );
69
}; // class string_to_arg
73
* \brief Get a const script runner from its name in the script.
74
* \author S�bastien Angibaud
77
class ENGINE_EXPORT string_to_arg
78
<bear::engine::script_context, const bear::engine::script_runner&>
81
static const bear::engine::script_runner& convert
82
( const bear::engine::script_context& c, const std::string& arg );
84
}; // class string_to_arg
87
* \brief Get a script runner from its name in the script.
88
* \author S�bastien Angibaud
91
class ENGINE_EXPORT string_to_arg
92
<bear::engine::script_context, bear::engine::script_runner&>
95
static bear::engine::script_runner& convert
96
( const bear::engine::script_context& c, const std::string& arg );
98
}; // class string_to_arg
100
} // namespace text_interface
103
#endif // __ENGINE_STRING_TO_ARG_HPP__