libfswatch  1.9.3
Public Member Functions | List of all members
fsw::monitor_registrant< M > Class Template Reference

Helper class to register monitor factories. More...

#include <monitor.hpp>

Public Member Functions

 monitor_registrant (const std::string &name, const fsw_monitor_type &type)
 Constructs a monitor registrant for the specified type. More...
 

Detailed Description

template<class M>
class fsw::monitor_registrant< M >

Helper class to register monitor factories.

The constructor of this class perform the registration of the given (name, type) pair in the monitor_factory registry. This class is used by the REGISTER_MONITOR and REGISTER_MONITOR_IMPL macros.

See also
fsw::monitor_factory

Constructor & Destructor Documentation

template<class M >
fsw::monitor_registrant< M >::monitor_registrant ( const std::string &  name,
const fsw_monitor_type type 
)
inline

Constructs a monitor registrant for the specified type.

Parameters
nameThe name of the type whose factory is being registered.
typeThe type whose factory is being registered.

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