3 #ifndef STREAMBASE_DATA_TYPE_H
4 #define STREAMBASE_DATA_TYPE_H
6 #include "StreamBase.hpp"
9 #include "Exceptions.hpp"
31 #ifndef DOXYGEN_INTERNAL_ONLY
57 operator int()
const {
return _type; }
64 sprintf(buf,
"unknown[%d]", _type);
66 case NONE:
return "none";
67 case INT:
return "int";
68 case DOUBLE:
return "double";
69 case STRING:
return "string";
70 case TIMESTAMP:
return "timestamp";
71 case LONG:
return "long";
72 case BOOL:
return "bool";
73 case BLOB:
return "blob";
74 case TUPLE:
return "tuple";
75 case LIST:
return "list";
76 case CAPTURE:
return "capture";
77 case FUNCTION:
return "function";
83 size_t getSize()
const {
102 "Unrecognized or invalid data type: " + as_string()));
114 inline bool operator == (
const DataType& a, DataType::Rep b) {
return a == DataType(b); }
115 inline bool operator == (DataType::Rep b,
const DataType& a) {
return a == DataType(b); }