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 class do not understand string values\n";
33 int cmp = strcmp(test.c_str(), VALUE);
36 cout << "Option class handles string values\n";
40 cout << "Option class do not handle string values\n";