36 #ifndef ROS_BUILTIN_TYPES_HPP 37 #define ROS_BUILTIN_TYPES_HPP 42 #include <unordered_map> 76 case OTHER:
return -1;
78 throw std::runtime_error(
"unsupported builtin type value");
84 case BOOL:
return "BOOL";
85 case BYTE:
return "BYTE";
86 case INT8:
return "INT8";
87 case CHAR:
return "CHAR";
88 case UINT8:
return "UINT8";
89 case UINT16:
return "UINT16";
90 case UINT32:
return "UINT32";
91 case UINT64:
return "UINT64";
92 case INT16:
return "INT16";
93 case INT32:
return "INT32";
94 case INT64:
return "INT64";
97 case TIME:
return "TIME";
99 case STRING:
return "STRING";
100 case OTHER:
return "OTHER";
102 throw std::runtime_error(
"unsupported builtin type value");
140 #endif // ROS_BUILTIN_TYPES_HPP BuiltinType getType< uint16_t >()
BuiltinType getType< char >()
std::ostream & operator<<(std::ostream &os, const BuiltinType &c)
BuiltinType getType< bool >()
BuiltinType getType< int8_t >()
BuiltinType getType< int32_t >()
int builtinSize(const BuiltinType c)
BuiltinType getType< int64_t >()
const char * toStr(const BuiltinType &c)
BuiltinType getType< int16_t >()
BuiltinType getType< float >()
BuiltinType getType< double >()
BuiltinType getType< uint8_t >()
BuiltinType getType< uint64_t >()
BuiltinType getType< uint32_t >()