wavelength 1.0.0
Loading...
Searching...
No Matches
BoolOption.h
Go to the documentation of this file.
1#pragma once
2
3#include "utl/Option.h"
4
10class BoolOption : public Option {
11public:
20 BoolOption(const char *name, bool *value, bool setValue);
21
28 virtual void Set(int &curArg);
29
35 virtual void PrintUsage();
36
37private:
38 bool *mValue;
39 bool mSetValue;
40};
Option that stores a value when it is present.
Definition booloption.h:11
virtual void PrintUsage()
Print -name to the diagnostic stream.
virtual void Set(int &curArg)
Store the value.
BoolOption(const char *name, bool *value, bool setValue)
Create the option.
Command-line option an OptionProcessor matches.
Definition option.h:9