Fawkes API
Fawkes Development Version
|
Type checker for interface types. More...
#include <>>
Static Public Member Functions | |
static bool | validType (const std::string &type, std::vector< InterfaceEnumConstant > *enum_constants=0) |
Check type validity. More... | |
static bool | validValue (const std::string &type, const std::string &value) |
Check value validity for given type. More... | |
Type checker for interface types.
This classed is used by the generator to decide if a supplied type is correct and in the case of constants if the supplied value matches the field type.
Valid types are:
Definition at line 33 of file type_checker.h.
|
static |
Check type validity.
type | type string to check |
enum_constants | an optional vector of enumeration constants that are used for type validation. |
Definition at line 64 of file type_checker.cpp.
Referenced by InterfaceConstant::InterfaceConstant(), and InterfaceField::valid().
|
static |
Check value validity for given type.
type | type if value |
value | value to check |
Definition at line 101 of file type_checker.cpp.
Referenced by InterfaceConstant::InterfaceConstant(), and InterfaceField::valid().