Fawkes API  Fawkes Development Version
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. More...
 
std::string getName ()
 Get name of constant. More...
 
std::string getValue ()
 Get value of constant. More...
 
std::string getType ()
 Get type of constant. More...
 
std::string getComment ()
 Get comment of constant. More...
 

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::InterfaceConstant ( const std::string &  name,
const std::string &  type,
const std::string &  value,
const std::string &  comment 
)

Constructor.

Parameters
namename of constant
typetype of constant
valuevalue of constant
commentcomment of message
Exceptions
InterfaceGeneratorInvalidTypeExceptionthrown if InterfaceDataTypeChecker reports an invalid type.
InterfaceGeneratorInvalidValueExceptionthrown 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

◆ getComment()

std::string InterfaceConstant::getComment ( )

Get comment of constant.

Returns
comment of constant.

Definition at line 106 of file constant.cpp.

◆ getName()

std::string InterfaceConstant::getName ( void  )

Get name of constant.

Returns
name of constant.

Definition at line 68 of file constant.cpp.

◆ getType()

std::string InterfaceConstant::getType ( )

Get type of constant.

Returns
type of constnat.

Definition at line 88 of file constant.cpp.

◆ getValue()

std::string InterfaceConstant::getValue ( )

Get value of constant.

Returns
value of constant.

Definition at line 78 of file constant.cpp.


The documentation for this class was generated from the following files: