#include <interfaces/generator/constant.h>
Public Member Functions | |
InterfaceConstant (const std::string &name, const std::string &type, const std::string &value, const std::string &comment) | |
Constructor. | |
std::string | getName () |
Get name of constant. | |
std::string | getValue () |
Get value of constant. | |
std::string | getType () |
Get type of constant. | |
std::string | getComment () |
Get comment of constant. |
Definition at line 28 of file constant.h.
InterfaceConstant::InterfaceConstant | ( | const std::string & | name, | |
const std::string & | type, | |||
const std::string & | value, | |||
const std::string & | comment | |||
) |
Constructor.
name | name of constant | |
type | type of constant | |
value | value of constant | |
comment | comment of message |
InterfaceGeneratorInvalidTypeException | thrown if InterfaceDataTypeChecker reports an invalid type. | |
InterfaceGeneratorInvalidValueException | thrown if InterfaceDataTypeChecker reports an illegal value for the given type. |
Definition at line 43 of file constant.cpp.
References InterfaceDataTypeChecker::validType(), and InterfaceDataTypeChecker::validValue().
std::string InterfaceConstant::getComment | ( | ) |
std::string InterfaceConstant::getName | ( | void | ) |
std::string InterfaceConstant::getType | ( | ) |
std::string InterfaceConstant::getValue | ( | ) |