geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm::IOGroupFactory Class Reference

#include <IOGroup.hpp>

Inheritance diagram for geopm::IOGroupFactory:
Collaboration diagram for geopm::IOGroupFactory:

Public Member Functions

 IOGroupFactory ()
virtual ~IOGroupFactory ()=default
Public Member Functions inherited from geopm::PluginFactory< IOGroup >
 PluginFactory ()=default
virtual ~PluginFactory ()=default
PluginFactory & operator= (const PluginFactory &other)=delete
void register_plugin (const std::string &plugin_name, std::function< std::unique_ptr< IOGroup >()> make_plugin, const std::map< std::string, std::string > &dictionary=m_empty_dictionary)
 Add a plugin to the factory.
std::unique_ptr< IOGroup > make_plugin (const std::string &plugin_name) const
 Create an object of the requested type. If the type was not registered, throws an exception.
std::vector< std::string > plugin_names (void) const
 Returns a list of all valid plugin names registered with the factory in the order they were registered.
const std::map< std::string, std::string > & dictionary (const std::string &plugin_name) const
 Returns the dictionary of static metadata about a registered type. If the type was not registered, throws an exception.

Constructor & Destructor Documentation

◆ IOGroupFactory()

geopm::IOGroupFactory::IOGroupFactory ( )

◆ ~IOGroupFactory()

virtual geopm::IOGroupFactory::~IOGroupFactory ( )
virtualdefault

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