dxd - dynax driver framework 2.6.0d200
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::service::parser Class Reference

#include <dx_service.h>

+ Inheritance diagram for dx::service::parser:
+ Collaboration diagram for dx::service::parser:

Public Types

typedef std::deque< std::string > args
 

Public Member Functions

 catch (...)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
 catch (const std::exception &__std_exception)
 
 dx_catchall_rethrow (, "%s: handle: %p, service: %p", id.c_str(), handle, service) void initialize(const std
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void operator<< (args &args) try
 
virtual void operator<< (const args &args)
 
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void parse (args &args)
 
 parser (const std::string &id, const char *name, const std::string &desc="")
 
virtual void quiet (const args &={}) noexcept
 

Protected Member Functions

 catch (...)
 
 catch (...)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 
 catch (const std::exception &__std_exception)
 
 catch (const std::exception &__std_exception)
 
 dx_catchall_rethrow () virtual void info(args &) try
 
 dx_catchall_rethrow () virtual void load(args &arg) try
 
 dx_catchall_rethrow () virtual void remove(args &) try
 
 dx_catchall_rethrow () virtual void run(args &) try
 
 dx_catchall_rethrow () virtual void start(args &) try
 
 dx_catchall_rethrow () virtual void stop(args &) try
 
bool head () const noexcept override
 
virtual void help (args &args) try
 
virtual void help_head () const noexcept
 
virtual void help_scope () const noexcept
 
virtual void install (args &args) try
 
const auto select (const std::string &id) const try
 
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void version (const args &={}) noexcept
 

Protected Attributes

std::string desc
 
std::map< std::deque< std::string >, dispatchdictionary
 
::SC_HANDLE handle {}
 
std::string id
 
const char * name {}
 
struct { 
 
   bool   quiet = false 
 
parameter 
 
std::string path
 
::SC_HANDLE service {}
 

Member Typedef Documentation

◆ args

typedef std::deque<std::string> dx::parser::args
inherited

Constructor & Destructor Documentation

◆ parser()

dx::service::parser::parser ( const std::string & id,
const char * name,
const std::string & desc = "" )
inline
+ Here is the call graph for this function:

Member Function Documentation

◆ catch() [1/9]

dx::parser::catch ( ...)
inlineprotectedinherited

◆ catch() [2/9]

dx::parser::catch ( ...)
inlineprotectedinherited

◆ catch() [3/9]

dx::parser::catch ( ...)
inlineinherited

◆ catch() [4/9]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::parser::catch ( const dx::exception & __dx_exception)
inlineprotectedinherited

◆ catch() [5/9]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::parser::catch ( const dx::exception & __dx_exception)
inlineprotectedinherited

◆ catch() [6/9]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::parser::catch ( const dx::exception & __dx_exception)
inlineinherited

◆ catch() [7/9]

dx::parser::catch ( const std::exception & __std_exception)
inlineprotectedinherited

◆ catch() [8/9]

dx::parser::catch ( const std::exception & __std_exception)
inlineprotectedinherited

◆ catch() [9/9]

dx::parser::catch ( const std::exception & __std_exception)
inlineinherited

◆ dx_catchall_rethrow() [1/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [2/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [3/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [4/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [5/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [6/7]

dx::service::parser::dx_catchall_rethrow ( ) &
inlineprotected

◆ dx_catchall_rethrow() [7/7]

dx::service::manager::dx_catchall_rethrow ( "%s: handle: % p,
service:%p" ,
id. c_str(),
handle ,
service  ) const
inlineinherited

◆ head()

bool dx::service::parser::head ( ) const
inlineoverrideprotectedvirtualnoexcept

Reimplemented from dx::parser.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ help()

virtual void dx::parser::help ( args & args)
inlineprotectedvirtualinherited

◆ help_head()

◆ help_scope()

◆ install()

virtual void dx::service::parser::install ( args & args)
inlineprotectedvirtual
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<<() [1/2]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::operator<< ( args & args)
inlinevirtualinherited

Reimplemented in dx::select< parsers_t >.

◆ operator<<() [2/2]

virtual void dx::parser::operator<< ( const args & args)
inlinevirtualinherited

◆ parse()

◆ quiet()

virtual void dx::parser::quiet ( const args & = {})
inlinevirtualnoexceptinherited

◆ select()

const auto dx::parser::select ( const std::string & id) const
inlineprotectedinherited
+ Here is the caller graph for this function:

◆ version()

virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::version ( const args & = {})
inlineprotectedvirtualnoexceptinherited

Member Data Documentation

◆ desc

std::string dx::service::manager::desc
protectedinherited

◆ dictionary

std::map<std::deque<std::string>, dispatch> dx::parser::dictionary
protectedinherited
Initial value:
{
{{"--help", "-h", "-?"},{std::bind(&parser::help, this, std::placeholders::_1), "help or detailed help on specific arguments", [this](){for(const auto& verb: dictionary) std::cout<< "["<< verb.first.front()<< "] ";}, true}},
{{"--quiet", "-q"}, {std::bind(&parser::quiet, this, std::placeholders::_1), "quiet!"}},
{{"--version", "-v"}, {std::bind(&parser::version, this, std::placeholders::_1), std::string{"display "}+ name+ " version"}},
}
std::map< std::deque< std::string >, dispatch > dictionary
Definition dx_parser.h:119
const char * name
Definition dx_parser.h:58
bool quiet
Definition dx_parser.h:60
virtual void help(args &args) try
Definition dx_parser.h:154
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void version(const args &={}) noexcept
Definition dx_parser.h:188

◆ handle

::SC_HANDLE dx::service::manager::handle {}
protectedinherited

◆ id

std::string dx::service::manager::id
protectedinherited

◆ name

const char* dx::parser::name {}
protectedinherited

◆ [struct]

struct { ... } dx::parser::parameter

◆ path

std::string dx::service::manager::path
protectedinherited

◆ quiet

bool dx::parser::quiet = false
inherited

◆ service

::SC_HANDLE dx::service::manager::service {}
protectedinherited

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

(c) copyright 2009 dynamic acoustics e.U. generated on Wed Feb 11 2026

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.