Fawkes API  Fawkes Development Version
ExamplePlugin Class Reference

Simple example plugin. More...

#include <plugins/examples/basics/example_plugin.h>

Inheritance diagram for ExamplePlugin:

Public Member Functions

 ExamplePlugin (fawkes::Configuration *config)
 Constructor. More...
 
- Public Member Functions inherited from fawkes::Plugin
 Plugin (Configuration *config)
 Constructor. More...
 
virtual ~Plugin ()
 Virtual destructor. More...
 
void set_name (const char *name)
 Set plugin name. More...
 
const char * name () const
 Get the name of the plugin. More...
 
ThreadListthreads ()
 Get a list of threads. More...
 
virtual bool persistent ()
 Determines if the plugin can be unloaded. More...
 

Additional Inherited Members

- Protected Attributes inherited from fawkes::Plugin
ThreadList thread_list
 Thread list member. More...
 
Configurationconfig
 Fawkes configuration. More...
 

Detailed Description

Simple example plugin.

Creates a few threads for different wakeup hooks that print out messages every 10 iterations.

Author
Tim Niemueller

Definition at line 28 of file example_plugin.h.

Constructor & Destructor Documentation

◆ ExamplePlugin()

ExamplePlugin::ExamplePlugin ( fawkes::Configuration config)

Constructor.

Parameters
configFawkes configuration

Definition at line 45 of file example_plugin.cpp.

References fawkes::ThreadList::push_back(), and fawkes::Plugin::thread_list.


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