summaryrefslogtreecommitdiff
path: root/compiler/cpp/src/thrift/parse/t_base_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cpp/src/thrift/parse/t_base_type.h')
-rw-r--r--compiler/cpp/src/thrift/parse/t_base_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/cpp/src/thrift/parse/t_base_type.h b/compiler/cpp/src/thrift/parse/t_base_type.h
index 5676f0492..4e5228d54 100644
--- a/compiler/cpp/src/thrift/parse/t_base_type.h
+++ b/compiler/cpp/src/thrift/parse/t_base_type.h
@@ -36,6 +36,7 @@ public:
enum t_base {
TYPE_VOID,
TYPE_STRING,
+ TYPE_UUID,
TYPE_BOOL,
TYPE_I8,
TYPE_I16,
@@ -55,6 +56,8 @@ public:
bool is_bool() const override { return base_ == TYPE_BOOL; }
+ bool is_uuid() const override { return base_ == TYPE_UUID; }
+
void set_binary(bool val) { binary_ = val; }
bool is_binary() const override { return binary_ && (base_ == TYPE_STRING); }
@@ -69,6 +72,9 @@ public:
case TYPE_STRING:
return "string";
break;
+ case TYPE_UUID:
+ return "uuid";
+ break;
case TYPE_BOOL:
return "bool";
break;