Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Generic_annotator_without_file< AnnotationType, SetAnnotation, GetInstanceName > Class Template Reference

Model of ParticleAnnotator for attributing any annotation to a particle without loading a file. More...

#include <Generic_annotator.hpp>

Public Member Functions

boost::program_options::options_description add_options (void)
 Virtual method for adding options to the module. More...
 
bool check_options (std::string &message) const
 Checks that the input options' values are coherent. More...
 
std::string get_output_prefix (void) const
 Returns a prefix that concatains the input line options used when running the module. More...
 
bool load (unsigned verbose, std::ostream &out)
 Load function. More...
 
std::string get_name (void) const
 Return the name of the class itself. More...
 

Static Public Member Functions

static boost::program_options::options_description *& get_options (void)
 Access to the options' description of the module. More...
 

Management

void set_loader_instance_name (const std::string &loader_instance_name)
 
const std::string & get_loader_instance_name (void) const
 

Detailed Description

template<class AnnotationType, class SetAnnotation, class GetInstanceName>
class SBL::Models::T_Generic_annotator_without_file< AnnotationType, SetAnnotation, GetInstanceName >

Model of ParticleAnnotator for attributing any annotation to a particle without loading a file.

It loads the annotations from a C++ data structure into a map.

Template Parameters
AnnotationTypeType of the annotation.
SetAnnotationFunctor taking a particle and its annotation as input and setting the annotation of the particle.
GetInstanceNameFunctor returning the instance name of this annotator.

Member Function Documentation

◆ add_options()

boost::program_options::options_description add_options ( void  )
inlinevirtual

Virtual method for adding options to the module.

Reimplemented from T_Module_option_description< Dummy >.

◆ check_options()

bool check_options ( std::string &  message) const
inlinevirtual

Checks that the input options' values are coherent.

Reimplemented from T_Module_option_description< Dummy >.

◆ get_name()

std::string get_name ( void  ) const
inlinevirtual

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
inlinevirtual

Returns a prefix that concatains the input line options used when running the module.

Reimplemented from T_Module_option_description< Dummy >.

◆ load()

bool load ( unsigned  verbose,
std::ostream &  out 
)
inlinevirtual

Load function.

Parameters
verboseVerbosity level.
[out]outOutput stream.
Returns
True if loading is successful, false otherwise. Function to call to execute the main function of a Loader

Reimplemented from Loader_base.