soma-io 6.0.6
carto::OptionBase Class Referenceabstract

#include <soma-io/getopt/getopt.h>

Inheritance diagram for carto::OptionBase:
Collaboration diagram for carto::OptionBase:

Public Member Functions

virtual std::string info () const =0
 

Protected Member Functions

virtual bool recognizeName (const std::string &)=0
 
virtual bool feed (const std::string &)=0
 
virtual void check ()=0
 
 OptionBase (const std::string &name, const std::string &info)
 
virtual ~OptionBase ()
 
void addName (const std::string &name)
 
const std::string & name () const
 
std::string names () const
 
bool _nameInList (const std::string &name) const
 

Protected Attributes

std::vector< std::string > _names
 
std::string _info
 

Friends

class OptionsParser
 

Detailed Description

Definition at line 96 of file getopt.h.

Constructor & Destructor Documentation

◆ OptionBase()

carto::OptionBase::OptionBase ( const std::string & name,
const std::string & info )
protected

References info(), and name().

Referenced by carto::SingleOption< T >::SingleOption().

◆ ~OptionBase()

carto::OptionBase::~OptionBase ( )
inlineprotectedvirtual

Definition at line 125 of file getopt.h.

Member Function Documentation

◆ _nameInList()

bool carto::OptionBase::_nameInList ( const std::string & name) const
inlineprotected

◆ addName()

void carto::OptionBase::addName ( const std::string & name)
inlineprotected

Definition at line 128 of file getopt.h.

References _names, and name().

◆ check()

virtual void carto::OptionBase::check ( )
protectedpure virtual

◆ feed()

◆ info()

◆ name()

◆ names()

std::string carto::OptionBase::names ( ) const
protected

◆ recognizeName()

Friends And Related Symbol Documentation

◆ OptionsParser

friend class OptionsParser
friend

Definition at line 98 of file getopt.h.

References OptionsParser.

Referenced by OptionsParser.

Member Data Documentation

◆ _info

std::string carto::OptionBase::_info
protected

◆ _names

std::vector<std::string> carto::OptionBase::_names
protected

Definition at line 102 of file getopt.h.

Referenced by _nameInList(), addName(), and name().


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