The base class for all plugin handlers. More...
#include <mia/core/handlerbase.hh>
Public Member Functions | |
void | add_dependend_handlers (HandlerHelpMap &handler_map) const |
CPluginHandlerBase (const char *data_descr, const char *type_descr) | |
CPluginHandlerBase (const CPluginHandlerBase &other)=delete | |
const std::string & | get_descriptor () const |
std::string | get_handler_type_string () const |
void | get_string_help_description_xml (std::ostream &os, CXMLElement &root) const |
void | get_xml_help (CXMLElement &root) const |
CPluginHandlerBase & | operator= (const CPluginHandlerBase &other)=delete |
void | print_help (std::ostream &os) const |
void | print_short_help (std::ostream &os) const |
bool | validate_parameter_string (const std::string &s) const |
virtual | ~CPluginHandlerBase () |
The base class for all plugin handlers.
This clas provides some basic funcionallity that is common to all plugin handlers. In addition, the copy constructor and assigment operator are deleted in order to forbit copying of instances of this class.
Definition at line 56 of file handlerbase.hh.
CPluginHandlerBase::CPluginHandlerBase | ( | const char * | data_descr, |
const char * | type_descr | ||
) |
Constructor
data_descr | plugin search path descriptor, used to identify the plugin data |
type_descr | plugin search path descriptor, used to identify the plugin type |
|
delete |
forbid copying - doxygen should drop these from the documentation
|
virtual |
void CPluginHandlerBase::add_dependend_handlers | ( | HandlerHelpMap & | handler_map | ) | const |
add all plug-in handler that may be called by this plug-in handler
[in,out] | handler_map | plug in handler map to add to |
const std::string& CPluginHandlerBase::get_descriptor | ( | ) | const |
Referenced by create_plugin< Handler, ProductChained, true >::apply(), TFactoryPluginHandler< I >::produce_unique(), and TFactoryPluginHandler< I >::set_caching().
std::string CPluginHandlerBase::get_handler_type_string | ( | ) | const |
void CPluginHandlerBase::get_string_help_description_xml | ( | std::ostream & | os, |
CXMLElement & | root | ||
) | const |
write the XML description of this handler to an XML node
os | stream to write additional descriptions to. |
root | the parent node the information is added to |
void CPluginHandlerBase::get_xml_help | ( | CXMLElement & | root | ) | const |
Add the help for all plug-ins to the xml tree
root | toot element the documentation is added to |
|
delete |
forbid copying - doxygen should drop these from the documentation
void CPluginHandlerBase::print_help | ( | std::ostream & | os | ) | const |
Print out the help to an output stream
os |
void CPluginHandlerBase::print_short_help | ( | std::ostream & | os | ) | const |
Print out the short help to an output stream
os |
bool CPluginHandlerBase::validate_parameter_string | ( | const std::string & | s | ) | const |
Validate the given string to see whether anything useful can be done with it. The actual way how this is validated depends on the plug-in type.