23 #include <interfaces/generator/pseudomap.h> 24 #include <interfaces/generator/type_checker.h> 25 #include <interfaces/generator/exceptions.h> 44 std::string keytype, std::string comment)
89 return __keytype +
"_t";
106 if ( (__name.length() == 0) || (__name.find(
" ") != std::string::npos) ) {
109 if (__type.length() == 0) {
112 if ( (__keytype !=
"int8") && (__keytype !=
"int16") &&
113 (__keytype !=
"int32") && (__keytype !=
"int64") &&
114 (__keytype !=
"uint8") && (__keytype !=
"uint16") &&
115 (__keytype !=
"uint32") && (__keytype !=
"uint64") ) {
118 if (__keytype.length() == 0) {
131 __parefs.push_back(make_pair(fieldname, key));
std::string getName() const
Get name of field.
Thrown if illegal value is supplied.
std::string getComment() const
Get comment of field.
RefList & getRefList()
Get reference list.
std::list< std::pair< std::string, std::string > > RefList
Reference list.
std::string getKeyType() const
Get type of key value.
void addRef(std::string fieldname, std::string key)
Add reference.
void valid()
Assert validity.
InterfacePseudoMap(std::string name, std::string type, std::string keytype, std::string comment)
Constructor.
std::string getType() const
Get type of field.