35 options().
add(
"disabled_actions", std::vector<std::string>())
36 .description(
"Names of the actions to disable")
37 .pretty_name(
"Disabled Actions")
56 CFdebug <<
name() <<
": Skipping disabled action " << action->uri().path() <<
CFendl;
72 std::vector<std::string> disabled_actions =
options().
value< std::vector<std::string> >(
"disabled_actions");
82 ActionDirector& operator<<(ActionDirector& action_director, const boost::shared_ptr<Action>& action)
88 const boost::shared_ptr< ActionDirector >& operator<<(const boost::shared_ptr< ActionDirector >&
action_director,
Action& action)
94 const boost::shared_ptr< ActionDirector >& operator<<(const boost::shared_ptr< ActionDirector >&
action_director,
const boost::shared_ptr< Action >& action)
96 action_director->add_component(action);
std::string name(ComponentWrapper &self)
ComponentBuilder< ActionDirector, Action, LibCommon > ActionDirector_Builder
Safe pointer to an object. This is the supported method for referring to components.
Helper class to create the Builder and place it in the factory.
URI uri() const
Construct the full path.
const std::string & name() const
Access the name of the component.
std::set< std::string > m_disabled_actions
bool is_disabled(const std::string &name)
True if the passed action is disabled.
ActionDirector & operator<<(ActionDirector &action_director, Action &action)
Add a link to the passed action as a child.
Holds the ComponentIterator class.
Uniform Resource Identifier (see http://en.wikipedia.org/wiki/Uniform_Resource_Identifier) ...
Top-level namespace for coolfluid.
const TYPE value(const std::string &opt_name) const
Get the value of the option with given name.
ActionDirector(const std::string &name)
void add_link(Component &linked_component)
Component that executes an action. Implementation of the IAction interface as a component, exposing the execute function as a signal.
void trigger_disabled_actions()
virtual void execute()
Execute all active child actions.
SelectOptionType< T >::type & add(const std::string &name, const T &default_value=T())
Base class for defining CF components.
Handle< Component > follow_link(const Handle< Component > &link_or_comp)
Follow links or return the component itself if it's not a link.
bool is_not_null(T ptr)
predicate for comparison to nullptr