Euphoria
eu::core::argparse::SubParserGroup Struct Reference

subparsers can be grouped and this structs represents that group More...

#include <argparse.h>

Public Member Functions

 SubParserGroup (const std::string &t, ParserBase *o)
 
void add (const SubParserNames &names, const std::string &desc, SubParserCallback sub)
 
void add (const SubParserNames &names, SubParserCallback sub)
 

Public Attributes

std::string title
 
ParserBaseowner
 
std::vector< std::shared_ptr< SubParserContainer > > parsers
 

Detailed Description

subparsers can be grouped and this structs represents that group

Definition at line 370 of file argparse.h.

Constructor & Destructor Documentation

◆ SubParserGroup()

eu::core::argparse::SubParserGroup::SubParserGroup ( const std::string &  t,
ParserBase o 
)

Definition at line 485 of file argparse.cc.

Member Function Documentation

◆ add() [1/2]

void eu::core::argparse::SubParserGroup::add ( const SubParserNames names,
const std::string &  desc,
SubParserCallback  sub 
)

Definition at line 497 of file argparse.cc.

◆ add() [2/2]

void eu::core::argparse::SubParserGroup::add ( const SubParserNames names,
SubParserCallback  sub 
)

Definition at line 514 of file argparse.cc.

Member Data Documentation

◆ owner

ParserBase* eu::core::argparse::SubParserGroup::owner

Definition at line 373 of file argparse.h.

◆ parsers

std::vector<std::shared_ptr<SubParserContainer> > eu::core::argparse::SubParserGroup::parsers

Definition at line 374 of file argparse.h.

◆ title

std::string eu::core::argparse::SubParserGroup::title

Definition at line 372 of file argparse.h.


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