mirror of
https://github.com/falk-werner/webfuse
synced 2024-09-28 22:40:43 +00:00
30 lines
615 B
C++
30 lines
615 B
C++
|
#ifndef WEBFUSE_COMMANDLINE_ARGS_HPP
|
||
|
#define WEBFUSE_COMMANDLINE_ARGS_HPP
|
||
|
|
||
|
namespace webfuse
|
||
|
{
|
||
|
|
||
|
class commandline_args
|
||
|
{
|
||
|
commandline_args (commandline_args const &) = delete;
|
||
|
commandline_args& operator=(commandline_args const &) = delete;
|
||
|
commandline_args (commandline_args &&) = delete;
|
||
|
commandline_args& operator=(commandline_args &&) = delete;
|
||
|
public:
|
||
|
commandline_args(char const * prog_name, int capacity);
|
||
|
~commandline_args();
|
||
|
|
||
|
void push(char const * arg);
|
||
|
int get_argc() const;
|
||
|
char ** get_argv();
|
||
|
|
||
|
private:
|
||
|
int capacity_;
|
||
|
int argc;
|
||
|
char ** argv;
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|