JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:

#include <jevois/Component/ParameterDef.H>

Base class for a Parameter definition.

This exposes the string-based interface to the definition while derived class templates will expose the value-based interface. Users should never directly create a ParameterDefBase, but should instead create a properly templated ParameterDef<T>, as ParameterDef<T> derives from ParameterBase.

Definition at line 47 of file ParameterDef.H.

Inheritance diagram for jevois::ParameterDefBase:
Collaboration diagram for jevois::ParameterDefBase:

Public Member Functions

 ParameterDefBase (std::string const &name, std::string const &description, ParameterCategory const &category=ParameterCategory())
 Construct a ParameterDefBase. More...
virtual ~ParameterDefBase ()
 Destructor. More...
const std::string & name () const
 The parameter name (without the leading "--") More...
const std::string & description () const
 Description of what the parameter does. More...
const ParameterCategorycategory () const
 The Parameter category. More...
virtual const std::string defaultValueString () const =0
 Default value in string representation. More...
virtual const std::string validValuesString () const =0
 Valid values in string representation. More...

Protected Attributes

std::string itsName
 Our name. More...
std::string itsDescription
 Our description string. More...
ParameterCategory itsCategory
 Our category. More...

Constructor & Destructor Documentation

◆ ParameterDefBase()

jevois::ParameterDefBase::ParameterDefBase ( std::string const &  name,
std::string const &  description,
ParameterCategory const &  category = ParameterCategory() 

Construct a ParameterDefBase.

Definition at line 32 of file ParameterDef.C.

◆ ~ParameterDefBase()

jevois::ParameterDefBase::~ParameterDefBase ( )


Definition at line 38 of file ParameterDef.C.

Member Function Documentation

◆ category()

const jevois::ParameterCategory & jevois::ParameterDefBase::category ( ) const

The Parameter category.

Definition at line 50 of file ParameterDef.C.

◆ defaultValueString()

virtual const std::string jevois::ParameterDefBase::defaultValueString ( ) const
pure virtual

Default value in string representation.

Implemented in jevois::ParameterDef< T >.

◆ description()

const std::string & jevois::ParameterDefBase::description ( ) const

Description of what the parameter does.

Definition at line 46 of file ParameterDef.C.

◆ name()

const std::string & jevois::ParameterDefBase::name ( ) const

The parameter name (without the leading "--")

Definition at line 42 of file ParameterDef.C.

◆ validValuesString()

virtual const std::string jevois::ParameterDefBase::validValuesString ( ) const
pure virtual

Valid values in string representation.

Implemented in jevois::ParameterDef< T >.

Member Data Documentation

◆ itsCategory

ParameterCategory jevois::ParameterDefBase::itsCategory

Our category.

Definition at line 75 of file ParameterDef.H.

◆ itsDescription

std::string jevois::ParameterDefBase::itsDescription

Our description string.

Definition at line 74 of file ParameterDef.H.

◆ itsName

std::string jevois::ParameterDefBase::itsName

Our name.

Definition at line 73 of file ParameterDef.H.

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