#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <stout/flags.hpp>
#include <stout/foreach.hpp>
#include <stout/hashset.hpp>
#include <stout/option.hpp>
#include <stout/preprocessor.hpp>
Go to the source code of this file.
|
#define | INSERT(z, N, _) subcommands.push_back( c ## N ); |
|
#define | TEMPLATE(Z, N, DATA) |
|
#define INSERT |
( |
|
z, |
|
|
|
N, |
|
|
|
_ |
|
) |
| subcommands.push_back( c ## N ); |
#define TEMPLATE |
( |
|
Z, |
|
|
|
N, |
|
|
|
DATA |
|
) |
| |
Value: int argc, \
char** argv, \
{ \
std::vector<Subcommand*> subcommands;
\ return
dispatch(prefix, argc, argv, subcommands); \
}
constexpr const char * prefix
Definition: os.hpp:96
Definition: subcommand.hpp:41
#define INSERT(z, N, _)
Definition: subcommand.hpp:59
void dispatch(const UPID &pid, std::unique_ptr< lambda::CallableOnce< void(ProcessBase *)>> f, const Option< const std::type_info * > &functionType=None())
#define ENUM_PARAMS
Definition: preprocessor.hpp:35
#define REPEAT_FROM_TO
Definition: preprocessor.hpp:40