$darkmode
cloe::utility::UseContact< D > Class Template Reference
Inheritance diagram for cloe::utility::UseContact< D >:
[legend]
Collaboration diagram for cloe::utility::UseContact< D >:
[legend]

Public Member Functions

 UseContact (const std::string &name, ContactMap< D > *m, const Conf &data)
 
ActionPtr clone () const override
 
void operator() (const Sync &, TriggerRegistrar &) override
 
- Public Member Functions inherited from cloe::Action
virtual bool is_significant () 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)
 

Protected Member Functions

void to_json (Json &j) const override
 
- Protected Member Functions inherited from cloe::Action
Logger logger () const
 

Additional Inherited Members

- Protected Attributes inherited from cloe::Entity
std::string name_
 
std::string desc_
 

Member Function Documentation

◆ clone()

template<typename D = Duration>
ActionPtr cloe::utility::UseContact< D >::clone ( ) const
inlineoverridevirtual

Clone this action with correct state information.

This happens when a sticky trigger evaluates to true.

Implements cloe::Action.

◆ operator()()

template<typename D = Duration>
void cloe::utility::UseContact< D >::operator() ( const Sync ,
TriggerRegistrar  
)
inlineoverridevirtual

Execute the action.

Implements cloe::Action.

◆ to_json()

template<typename D = Duration>
void cloe::utility::UseContact< D >::to_json ( Json &  j) const
inlineoverrideprotectedvirtual

Describe the action state so that the same action can be re-created through it's JSON representation with the corresponding ActionFactory.

Implements cloe::Action.


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