SNode.C
Loading...
Searching...
No Matches
CLI::CallForCommandline Class Reference

#include <Exceptions.h>

Inheritance diagram for CLI::CallForCommandline:
Collaboration diagram for CLI::CallForCommandline:

Public Types

enum class  Mode { REQUIRED , STANDARD , FULL , DEFAULT }
 

Public Member Functions

 CallForCommandline (CLI::App *app, const std::string &description, Mode mode)
 
 ~CallForCommandline () override
 
CLI::App * getApp () const
 
Mode getMode () const
 

Private Attributes

CLI::App * app
 
Mode mode
 

Detailed Description

Definition at line 70 of file Exceptions.h.

Member Enumeration Documentation

◆ Mode

enum class CLI::CallForCommandline::Mode
strong
Enumerator
REQUIRED 
STANDARD 
FULL 
DEFAULT 

Definition at line 72 of file Exceptions.h.

Constructor & Destructor Documentation

◆ CallForCommandline()

CLI::CallForCommandline::CallForCommandline ( CLI::App *  app,
const std::string &  description,
Mode  mode 
)

Definition at line 52 of file Exceptions.cpp.

53 : CLI::Success("CallForCommandline", description, CLI::ExitCodes::Success)
54 , app(app)
55 , mode(mode) {
56 }

References app, and mode.

Referenced by utils::Config::addStandardFlags().

Here is the caller graph for this function:

◆ ~CallForCommandline()

CLI::CallForCommandline::~CallForCommandline ( )
override

Definition at line 58 of file Exceptions.cpp.

58 {
59 }

Member Function Documentation

◆ getApp()

CLI::App * CLI::CallForCommandline::getApp ( ) const

Definition at line 61 of file Exceptions.cpp.

61 {
62 return app;
63 }

References app.

Referenced by utils::Config::parse2().

Here is the caller graph for this function:

◆ getMode()

CallForCommandline::Mode CLI::CallForCommandline::getMode ( ) const

Definition at line 65 of file Exceptions.cpp.

65 {
66 return mode;
67 }

References mode.

Referenced by utils::Config::parse2().

Here is the caller graph for this function:

Member Data Documentation

◆ app

CLI::App* CLI::CallForCommandline::app
private

Definition at line 81 of file Exceptions.h.

Referenced by CallForCommandline(), and getApp().

◆ mode

Mode CLI::CallForCommandline::mode
private

Definition at line 82 of file Exceptions.h.

Referenced by CallForCommandline(), and getMode().


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