$darkmode
cloe::actions::SetVariableActionFactory< T > Class Template Reference
Inheritance diagram for cloe::actions::SetVariableActionFactory< T >:
[legend]
Collaboration diagram for cloe::actions::SetVariableActionFactory< T >:
[legend]

Public Types

using ActionType = SetVariableAction< T >
 

Public Member Functions

 SetVariableActionFactory (const std::string &action_name, const std::string &action_desc, const std::string &data_name, T *data_ptr)
 
ActionPtr make (const Conf &c) const override
 
ActionPtr make (const std::string &s) const override
 
- Public Member Functions inherited from cloe::TriggerFactory< T >
virtual TriggerSchema schema () const
 
virtual Json json_schema () const
 
- Public Member Functions inherited from cloe::Entity
 Entity (const std::string &name)
 
 Entity (const std::string &name, const std::string &desc)
 
std::string name () const
 
void set_name (const std::string &name)
 
std::string description () const
 
void set_description (const std::string &desc)
 

Additional Inherited Members

- Protected Member Functions inherited from cloe::Entity
virtual Logger logger () const
 
- Protected Attributes inherited from cloe::Entity
std::string name_
 
std::string desc_
 

Member Function Documentation

◆ make() [1/2]

template<typename T >
ActionPtr cloe::actions::SetVariableActionFactory< T >::make ( const Conf c) const
inlineoverridevirtual

Create a new T based on the content of the input Conf.

Implements cloe::TriggerFactory< T >.

Here is the call graph for this function:

◆ make() [2/2]

template<typename T >
ActionPtr cloe::actions::SetVariableActionFactory< T >::make ( const std::string &  s) const
inlineoverridevirtual

Create a new T based on the content of the input string.

The default implementation tries to make an instance with an empty JSON object, which only works for actions and events that require no input.

It is strongly recommended to implement this method by creating a Conf object and passing that to the make(const Conf&) method. This allows users to draw a strong parallel from string representation to JSON representation.

Reimplemented from cloe::TriggerFactory< T >.


The documentation for this class was generated from the following file: