ROSE
0.9.6a
|
This class is part of the specification of transformation options. More...
#include <optionDeclaration.h>
Public Member Functions | |
std::string | getValue () |
get the input value. More... | |
Constructors to associate strings with values. | |
Constructors designed to trigger auto-promotion of constructor arguments This mechanism depends upon autopromotion to generate a OptionDeclaration object from a string and a value. | |
OptionDeclaration (std::string s, int value) | |
OptionDeclaration (std::string s, double value) | |
OptionDeclaration (std::string s, std::string value) | |
Public Attributes | |
std::string | optionName |
This is the name of the option which is used at compile-time to associate the value with the option. More... | |
values associated with the option string | |
int | valueInteger |
bool | valueBool |
double | valuedouble |
std::string | valueString |
This class is part of the specification of transformation options.
This class is part of a general mechanism to permit the user's application to easily specify options which compile to useless code (no side-effects) but which can be seen by preprocessors built with ROSE.
Declarations of options can appear with an option name string and either a number, or additional string, or ...
Definition at line 17 of file optionDeclaration.h.
OptionDeclaration::OptionDeclaration | ( | std::string | s, |
int | value | ||
) |
OptionDeclaration::OptionDeclaration | ( | std::string | s, |
double | value | ||
) |
OptionDeclaration::OptionDeclaration | ( | std::string | s, |
std::string | value | ||
) |
std::string OptionDeclaration::getValue | ( | ) |
get the input value.
std::string OptionDeclaration::optionName |
This is the name of the option which is used at compile-time to associate the value with the option.
Definition at line 23 of file optionDeclaration.h.
int OptionDeclaration::valueInteger |
Definition at line 29 of file optionDeclaration.h.
bool OptionDeclaration::valueBool |
Definition at line 30 of file optionDeclaration.h.
double OptionDeclaration::valuedouble |
Definition at line 31 of file optionDeclaration.h.
std::string OptionDeclaration::valueString |
Definition at line 32 of file optionDeclaration.h.