SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::OnnxConfig Class Reference

#include <OnnxConfig.h>

Inheritance diagram for SourceXtractor::OnnxConfig:
[legend]
Collaboration diagram for SourceXtractor::OnnxConfig:
[legend]

Public Member Functions

 OnnxConfig (long manager_id)
 Construct a new OnnxConfig. More...
 
 ~OnnxConfig () override=default
 Destructor. More...
 
std::map< std::string, OptionDescriptionListgetProgramOptions () override
 
void initialize (const UserValues &args) override
 
const std::vector< std::string > & getModels () const
 
- Public Member Functions inherited from Euclid::Configuration::Configuration
 Configuration (long manager_id)
 
virtual ~Configuration ()=default
 
virtual void preInitialize (const UserValues &args)
 
virtual void postInitialize (const UserValues &args)
 
const std::set< std::type_index > & getDependencies ()
 
StategetCurrentState ()
 
State getCurrentState () const
 

Private Attributes

std::vector< std::stringm_onnx_model_paths
 

Additional Inherited Members

- Public Types inherited from Euclid::Configuration::Configuration
enum class  State { CONSTRUCTED , PRE_INITIALIZED , INITIALIZED , FINAL }
 
typedef std::vector< boost::program_options::option_description > OptionDescriptionList
 
typedef std::map< std::string, boost::program_options::variable_value > UserValues
 
- Protected Member Functions inherited from Euclid::Configuration::Configuration
void declareDependency ()
 
T & getDependency ()
 
const T & getDependency () const
 

Detailed Description

Handle the configuration of the ONNX plugin

Definition at line 28 of file OnnxConfig.h.

Constructor & Destructor Documentation

◆ OnnxConfig()

SourceXtractor::OnnxConfig::OnnxConfig ( long  manager_id)

Construct a new OnnxConfig.

Definition at line 28 of file OnnxConfig.cpp.

◆ ~OnnxConfig()

SourceXtractor::OnnxConfig::~OnnxConfig ( )
overridedefault

Destructor.

Member Function Documentation

◆ getModels()

const std::vector<std::string>& SourceXtractor::OnnxConfig::getModels ( ) const
inline
Returns
A list of paths to ONNX models

Definition at line 44 of file OnnxConfig.h.

References m_onnx_model_paths.

Referenced by SourceXtractor::OnnxTaskFactory::configure().

◆ getProgramOptions()

auto SourceXtractor::OnnxConfig::getProgramOptions ( )
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 31 of file OnnxConfig.cpp.

References std::string::c_str(), and SourceXtractor::ONNX_MODEL.

Here is the call graph for this function:

◆ initialize()

void SourceXtractor::OnnxConfig::initialize ( const UserValues args)
overridevirtual

Reimplemented from Euclid::Configuration::Configuration.

Definition at line 37 of file OnnxConfig.cpp.

References m_onnx_model_paths, and SourceXtractor::ONNX_MODEL.

Member Data Documentation

◆ m_onnx_model_paths

std::vector<std::string> SourceXtractor::OnnxConfig::m_onnx_model_paths
private

Definition at line 49 of file OnnxConfig.h.

Referenced by getModels(), and initialize().


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