InterfaceConstant Class Reference
Interface generator internal representation of a constant as parsed from the XML template file. More...
#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. | |
Detailed Description
Interface generator internal representation of a constant as parsed from the XML template file.Definition at line 28 of file constant.h.
Constructor & Destructor Documentation
| InterfaceConstant::InterfaceConstant | ( | const std::string & | name, | |
| const std::string & | type, | |||
| const std::string & | value, | |||
| const std::string & | comment | |||
| ) |
Constructor.
- Parameters:
-
name name of constant type type of constant value value of constant comment comment of message
- Exceptions:
-
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().
Member Function Documentation
| std::string InterfaceConstant::getComment | ( | ) |
| std::string InterfaceConstant::getName | ( | void | ) |
| std::string InterfaceConstant::getType | ( | ) |
| std::string InterfaceConstant::getValue | ( | ) |
The documentation for this class was generated from the following files:
- src/interfaces/generator/constant.h
- src/interfaces/generator/constant.cpp

