Rudiments
commandline.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_COMMANDLINE_H
5#define RUDIMENTS_COMMANDLINE_H
6
7#include <rudiments/private/commandlineincludes.h>
8
11class RUDIMENTS_DLLSPEC commandline : public object {
12 public:
13
16
19 commandline(int32_t argc, const char **argv);
20
23
25 void setArgumentCount(int32_t argc);
26
29
31 void setArgumentValues(const char **argv);
32
34 const char **getArgumentValues();
35
38 void setArguments(int32_t argc, const char **argv);
39
48 const char *getValue(const char *arg);
49
71 const char *getValue(const char *arg,
72 const char *abbr);
73
78 bool isFound(const char *arg);
79
89 bool isFound(const char *arg, const char *abbr);
90
96
99 bool clear();
100
101 #include <rudiments/private/commandline.h>
102
103};
104
105#endif
Definition commandline.h:11
commandline(int32_t argc, const char **argv)
bool isFound(const char *arg, const char *abbr)
const char ** getArgumentValues()
const char * getValue(const char *arg)
void setArgumentValues(const char **argv)
void setArguments(int32_t argc, const char **argv)
void convertToDictionary(dictionary< char *, char * > *dict)
const char * getValue(const char *arg, const char *abbr)
bool isFound(const char *arg)
int32_t getArgumentCount()
bool clear()
void setArgumentCount(int32_t argc)
Definition dictionary.h:12
Definition object.h:10