wavelength 1.0.0
Loading...
Searching...
No Matches
StringOption.h
Go to the documentation of this file.
1#pragma once
2
3#include "utl/Option.h"
4#include "utl/Str.h"
5
11class StringOption : public Option {
12public:
20 StringOption(const char *name, String *value);
21
28 virtual void Set(int &curArg);
29
35 virtual void PrintUsage();
36
37private:
38 String *mValue;
39};
Command-line option an OptionProcessor matches.
Definition option.h:9
Option that reads the argument after it into a string.
Definition stringoption.h:12
StringOption(const char *name, String *value)
Create the option.
virtual void PrintUsage()
Print -name <string> to the diagnostic stream.
virtual void Set(int &curArg)
Store the next argument and consume it.
Growable text buffer that is also a PrnStream.
Definition string.h:19