Collector for models of ParticleAnnotator.
More...
#include <Particle_annotator_collector.hpp>
|
ParticleAnnotator1 & | get_first_annotator (void) |
| Returns the first annotator of this collector. More...
|
|
ParticleAnnotator2 & | get_second_annotator (void) |
| Returns the second annotator of this collector. More...
|
|
Base * | get_annotator (const std::string &name) |
| Returns the annotator in the collector whose instance name is the input name, or the NULL pointer if there is none. More...
|
|
boost::program_options::options_description | add_options (void) override |
| Virtual method for adding options to the module. More...
|
|
bool | check_options (std::string &message) const override |
| Checks that the input options' values are coherent. More...
|
|
std::string | get_output_prefix (void) const override |
| Returns a prefix that concatains the input line options used when running the module. More...
|
|
bool | load (unsigned verbose, std::ostream &out) override |
| Load function. More...
|
|
std::string | get_name (void) const override |
| Return the name of the class itself. More...
|
|
|
static boost::program_options::options_description *& | get_options (void) |
| Access to the options' description of the module. More...
|
|
|
void | set_loader_instance_name (const std::string &loader_instance_name) |
|
const std::string & | get_loader_instance_name (void) const |
|
template<class ParticleAnnotator1, class ParticleAnnotator2>
class SBL::Models::T_Particle_annotator_collector< ParticleAnnotator1, ParticleAnnotator2 >
Collector for models of ParticleAnnotator.
- Template Parameters
-
ParticleAnnotator1 | Annotator that will be called in first. |
ParticleAnnotator2 | Annotator that will be called in second. |
◆ add_options()
boost::program_options::options_description add_options |
( |
void |
| ) |
|
|
inlineoverridevirtual |
◆ check_options()
bool check_options |
( |
std::string & |
message | ) |
const |
|
inlineoverridevirtual |
◆ get_annotator()
Base* get_annotator |
( |
const std::string & |
name | ) |
|
|
inline |
Returns the annotator in the collector whose instance name is the input name, or the NULL pointer if there is none.
◆ get_first_annotator()
ParticleAnnotator1& get_first_annotator |
( |
void |
| ) |
|
|
inline |
Returns the first annotator of this collector.
◆ get_name()
std::string get_name |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
Return the name of the class itself.
Reimplemented from Loader_base.
◆ get_options()
static boost::program_options::options_description*& get_options |
( |
void |
| ) |
|
|
inlinestaticinherited |
Access to the options' description of the module.
◆ get_output_prefix()
std::string get_output_prefix |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
◆ get_second_annotator()
ParticleAnnotator2& get_second_annotator |
( |
void |
| ) |
|
|
inline |
Returns the second annotator of this collector.
◆ load()
bool load |
( |
unsigned |
verbose, |
|
|
std::ostream & |
out |
|
) |
| |
|
inlineoverridevirtual |
Load function.
- Parameters
-
| verbose | Verbosity level. |
[out] | out | Output stream. |
- Returns
- True if loading is successful, false otherwise. Function to call to execute the main function of a Loader
Reimplemented from Loader_base.