OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
ConfigurationBase Class Referenceabstract

Public Member Functions

bool show () const
void show (std::ostream &out) const
virtual ~ConfigurationBase ()=default

Protected Member Functions

 ConfigurationBase (size_t qty, char **args) noexcept
const Optionsoptions () const noexcept
virtual void showOptions (std::ostream &) const =0

Static Protected Member Functions

static bool exist (const Options &options, const Char *option)

Detailed Description

Definition at line 406 of file Options.h.

Constructor & Destructor Documentation

◆ ~ConfigurationBase()

virtual ~ConfigurationBase ( )
virtualdefault

◆ ConfigurationBase()

ConfigurationBase ( size_t qty,
char ** args )
inlineprotectednoexcept

Definition at line 424 of file Options.h.

425 : opts_(qty, args)
426 {
427 }

Member Function Documentation

◆ exist()

bool exist ( const Options & options,
const Char * option )
inlinestaticprotected

Definition at line 436 of file Options.h.

437 {
438 assert(nullptr != option);
439
440 return (nullptr != options.args(option));
441 }

◆ options()

const Options & options ( ) const
inlineprotectednoexcept

Definition at line 429 of file Options.h.

430 {
431 return opts_;
432 }

◆ show() [1/2]

bool show ( ) const
inline

Definition at line 409 of file Options.h.

410 {
411 return exist(options(), "help");
412 }
bool exist(const std::string &entry)

◆ show() [2/2]

void show ( std::ostream & out) const
inline

Definition at line 414 of file Options.h.

415 {
416 out << "Options affecting the application behavior: " << std::endl;
417 showOptions(out);
418 out << " --help" << std::endl << "\tDisplays this message. " << std::endl;
419 }

◆ showOptions()