$darkmode
vtd::ScpActionFactory Class Reference
Inheritance diagram for vtd::ScpActionFactory:
Collaboration diagram for vtd::ScpActionFactory:

Public Types

using ActionType = ScpAction
 

Public Member Functions

 ScpActionFactory (std::shared_ptr< ScpTransceiver > scp_client, const std::map< std::string, std::string > &predefined)
 
cloe::TriggerSchema schema () const override
 
cloe::ActionPtr make (const cloe::Conf &c) const override
 
cloe::ActionPtr make (const std::string &s) const override
 
- Public Member Functions inherited from cloe::TriggerFactory< T >
virtual fable::Json json_schema () const
 
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
- Public Member Functions inherited from cloe::Entity
 Entity (std::string name)
 
 Entity (std::string name, std::string desc)
 
const std::string & name () const
 
void set_name (std::string name)
 
const std::string & description () const
 
void set_description (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]

cloe::ActionPtr vtd::ScpActionFactory::make ( const cloe::Conf c) const
overridevirtual

Takes input like:

{ name: "vtd/scp" xml: "<SimCtrl><[[cmd]]/><SimCtrl>" }

or:

{ name: "scp" template: "simctrl" data: cmd: "Stop" }

Implements cloe::TriggerFactory< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make() [2/2]

cloe::ActionPtr vtd::ScpActionFactory::make ( const std::string &  s) const
overridevirtual

Takes template reference without data.

Reimplemented from cloe::TriggerFactory< T >.

Here is the call graph for this function:

◆ schema()

cloe::TriggerSchema vtd::ScpActionFactory::schema ( ) const
overridevirtual

Return factory schema.

This can be used to check input automatically or to derive help text for all trigger events and actions dynamically.

Reimplemented from cloe::TriggerFactory< T >.

Here is the call graph for this function:

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