7 #ifndef cf3_common_ActionDirector_hpp
8 #define cf3_common_ActionDirector_hpp
34 static std::string
type_name () {
return "ActionDirector"; }
37 virtual void execute();
41 bool is_disabled(
const std::string& name);
44 void trigger_disabled_actions();
52 template<
typename ActionT>
53 ActionDirector& operator<<(ActionDirector& action_director, const Handle<ActionT>& action)
59 ActionDirector& operator<<(ActionDirector& action_director, const boost::shared_ptr<Action>& action);
62 const boost::shared_ptr<ActionDirector>& operator<<(const boost::shared_ptr<ActionDirector>&
action_director, Action& action);
65 template<
typename ActionT>
68 return action_director << *action;
72 const boost::shared_ptr<ActionDirector>& operator<<(const boost::shared_ptr<ActionDirector>&
action_director,
const boost::shared_ptr<Action>& action);
81 #endif // cf3_common_ActionDirector_hpp
std::string name(ComponentWrapper &self)
std::set< std::string > m_disabled_actions
ActionDirector & operator<<(ActionDirector &action_director, Action &action)
Add a link to the passed action as a child.
Top-level namespace for coolfluid.
static std::string type_name()
Get the class name.
Component that executes an action. Implementation of the IAction interface as a component, exposing the execute function as a signal.