COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
#include <OptionURI.hpp>
Inherits OptionT< URI >.
Public Types | |
typedef URI | value_type |
Public Types inherited from OptionT< URI > | |
typedef URI | value_type |
Public Types inherited from Option | |
typedef boost::function< void() > | TriggerT |
Typedef for trigger functions. More... | |
typedef Uint | TriggerID |
ID for triggers. More... | |
typedef std::map< TriggerID, TriggerT > | TriggerStorageT |
Typedef for trigger functions storage. More... | |
Public Member Functions | |
OptionURI (const std::string &name, const URI &def) | |
virtual | ~OptionURI () |
OptionURI & | supported_protocol (URI::Scheme::Type protocol) |
const std::vector< URI::Scheme::Type > & | supported_protocols () const |
virtual std::string | restricted_list_str () const |
Return the restricted list as string. More... | |
Public Member Functions inherited from OptionT< URI > | |
OptionT (const std::string &name, value_type def) | |
virtual std::string | value_str () const |
virtual void | set_restricted_list_str (const std::vector< std::string > &list) |
Set the restricted list using a vector of strings. More... | |
Public Member Functions inherited from Option | |
Option (const std::string &name, boost::any def) | |
virtual | ~Option () |
Desctructor. More... | |
template<typename TYPE > | |
TYPE | value () const |
Casts the value to the provided TYPE. More... | |
template<typename OPTION_TYPE > | |
OPTION_TYPE & | cast_to () |
template<typename OPTION_TYPE > | |
const OPTION_TYPE & | cast_to () const |
Option & | pretty_name (const std::string &pretty_name) |
Sets the option pretty name. More... | |
Option & | description (const std::string &description) |
Sets the option description. More... | |
Option & | separator (const std::string &separator) |
Sets the option operator. The separator is used in some convertions to string to separate items, i.e. the restricted list of values or the option value if it is an array. More... | |
void | set (XML::XmlNode &node) |
configure this option using the passed xml node More... | |
Option & | attach_trigger (TriggerT trigger) |
TriggerID | attach_trigger_tracked (TriggerT trigger) |
Attach a trigger, returning an ID that can be used to detach again. More... | |
void | detach_trigger (const TriggerID trigger_id) |
Detach the given trigger. More... | |
std::string | name () const |
std::string | pretty_name () const |
std::string | description () const |
std::string | separator () const |
Option & | operator= (const boost::any &new_value) |
template<typename TYPE > | |
Option & | link_to (TYPE *par) |
Option & | link_option (const boost::shared_ptr< common::Option > &linked) |
Link another option to this option. More... | |
Option & | mark_basic () |
virtual void | change_value (const boost::any &value) |
change the value of this option More... | |
std::vector< boost::any > & | restricted_list () |
Gives a reference to the restricted list. More... | |
const std::vector< boost::any > & | restricted_list () const |
Gives a const reference to the restricted list. More... | |
virtual bool | has_restricted_list () const |
Checks whether the option has a list of restricted values. More... | |
void | trigger () const |
Calls the triggers connected to this option. More... | |
void | restore_default () |
restore the default value of the option More... | |
virtual boost::any | value () const |
virtual std::string | type () const |
virtual std::string | element_type () const |
Public Member Functions inherited from TaggedObject | |
TaggedObject () | |
Constructor. More... | |
bool | has_tag (const std::string &tag) const |
void | add_tag (const std::string &tag) |
std::vector< std::string > | get_tags () const |
void | remove_tag (const std::string &tag) |
Private Member Functions | |
virtual void | change_value_impl (const boost::any &value) |
Concrete implementation of the value changing. More... | |
Private Attributes | |
std::vector< URI::Scheme::Type > | m_protocols |
Additional Inherited Members | |
Protected Attributes inherited from Option | |
boost::any | m_value |
storage of the value of the option More... | |
std::vector< boost::any > | m_linked_params |
parameters that also get updated when option is changed More... | |
std::vector< Handle< Option > > | m_linked_opts |
options that also get updated when option is changed More... | |
Definition at line 23 of file OptionURI.hpp.
typedef URI value_type |
Definition at line 28 of file OptionURI.hpp.
Definition at line 33 of file OptionURI.cpp.
|
virtual |
Definition at line 40 of file OptionURI.cpp.
|
privatevirtual |
Concrete implementation of the value changing.
Reimplemented from OptionT< URI >.
Definition at line 56 of file OptionURI.cpp.
|
virtual |
Return the restricted list as string.
Reimplemented from OptionT< URI >.
Definition at line 83 of file OptionURI.cpp.
OptionURI & supported_protocol | ( | URI::Scheme::Type | protocol | ) |
Add the supplied protocol type to the list of supported protocols No effect if the protocol was already registered with this option.
Definition at line 46 of file OptionURI.cpp.
|
inline |
Definition at line 38 of file OptionURI.hpp.
|
private |
Definition at line 43 of file OptionURI.hpp.
Send comments to: COOLFluiD Web Admin |