Add support for binary values
Change-Id: I0ebc7d49590e3bffc449a781822e4d6bf423f331
diff --git a/src/ast_commands.cpp b/src/ast_commands.cpp
index fe2fa84..55b6ccd 100644
--- a/src/ast_commands.cpp
+++ b/src/ast_commands.cpp
@@ -14,6 +14,13 @@
{
}
+binary_::binary_() = default;
+
+binary_::binary_(const std::string& value)
+ : m_value(value)
+{
+}
+
bool set_::operator==(const set_& b) const
{
return this->m_path == b.m_path && this->m_data == b.m_data;
@@ -29,6 +36,11 @@
return this->m_path == b.m_path && this->m_options == b.m_options;
}
+bool binary_::operator==(const binary_& b) const
+{
+ return this->m_value == b.m_value;
+}
+
bool enum_::operator==(const enum_& b) const
{
return this->m_value == b.m_value;