v0.2.50..v0.2.51 changeset ElementAttributeType.h
Garret Voltz edited this page Jan 15, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/ElementAttributeType.h b/hoot-core/src/main/cpp/hoot/core/elements/ElementAttributeType.h
index 6d59740..d1a36d5 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/ElementAttributeType.h
+++ b/hoot-core/src/main/cpp/hoot/core/elements/ElementAttributeType.h
@@ -54,7 +54,8 @@ public:
Timestamp = 1,
User = 2,
Uid = 3,
- Version = 4
+ Version = 4,
+ Id = 5
} Type;
ElementAttributeType() : _type(Changeset) {}
@@ -79,6 +80,8 @@ public:
return "uid";
case ElementAttributeType::Version:
return "version";
+ case ElementAttributeType::Id:
+ return "id";
default:
return QString("Unknown (%1)").arg(_type);
}
@@ -107,6 +110,10 @@ public:
{
return Version;
}
+ else if (typeString == "id")
+ {
+ return Id;
+ }
else
{
throw IllegalArgumentException("Invalid element attribute type string: " + typeString);