Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
app::CliArgs::Action Class Reference

An action parsed from the command line. More...

#include <CliArgs.hpp>

Classes

struct  Exit
 Exit action. More...
 
struct  Migrate
 Migration action. More...
 
struct  Run
 Run action. More...
 
struct  VerifyConfig
 Verify Config action. More...
 

Public Member Functions

template<typename ActionType >
requires std::is_same_v<ActionType, Run> or std::is_same_v<ActionType, Exit> or std::is_same_v<ActionType, Migrate> or std::is_same_v<ActionType, VerifyConfig>
 Action (ActionType &&action)
 Construct an action from a Run.
 
template<typename... Processors>
int apply (Processors &&... processors) const
 Apply a function to the action.
 

Detailed Description

An action parsed from the command line.

Constructor & Destructor Documentation

◆ Action()

template<typename ActionType >
requires std::is_same_v<ActionType, Run> or std::is_same_v<ActionType, Exit> or std::is_same_v<ActionType, Migrate> or std::is_same_v<ActionType, VerifyConfig>
app::CliArgs::Action::Action ( ActionType && action)
inlineexplicit

Construct an action from a Run.

Parameters
actionRun action.

Member Function Documentation

◆ apply()

template<typename... Processors>
int app::CliArgs::Action::apply ( Processors &&... processors) const
inline

Apply a function to the action.

Template Parameters
ProcessorsAction processors types. Must be callable with the action type and return int.
Parameters
processorsAction processors.
Returns
Exit code.

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