7 using namespace command;
10 #define VALUE "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
12 #define OPTION NAME "=" VALUE
14 typedef std::string OptionType;
18 void _function(OptionType value) {
23 Option<OptionType> option(NAME, "Option with string value", _function);
25 if (option.understand(OPTION)) {
29 cout << option.describe() << " do not understand string values\n";
33 int cmp = strcmp(test.c_str(), VALUE);
36 cout << option.describe() << " handles string values\n";
40 cout << "Option class do not handle string values\n";