libeblearn
|
A module class containing a name. More...
#include <ebl_arch.h>
Public Member Functions | |
module (const char *name="module") | |
virtual const char * | name () |
Return the name of this module. | |
virtual void | set_name (const char *name) |
Set the name of this module to 'name'. | |
virtual void | set_output_streams (std::ostream &out, std::ostream &err) |
Replace standard output streams for this module. | |
virtual std::string | describe () |
Returns a string describing this module and its parameters. | |
virtual std::string | describe (uint indent) |
Returns a string describing this module and its parameters. | |
virtual void | enable () |
Allow this module to process. | |
virtual void | disable () |
Forbid this module to process. | |
Protected Attributes | |
std::string | _name |
Name of this module. | |
std::ostream * | mout |
std::ostream * | merr |
Output streams. | |
bool | silent |
bool | _enabled |
A module class containing a name.