summaryrefslogtreecommitdiff
path: root/lout/object.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lout/object.hh')
-rw-r--r--lout/object.hh17
1 files changed, 17 insertions, 0 deletions
diff --git a/lout/object.hh b/lout/object.hh
index 5a4935c5..3ba7b590 100644
--- a/lout/object.hh
+++ b/lout/object.hh
@@ -138,6 +138,23 @@ public:
/**
+ * \brief An object::Object wrapper for bool's.
+ */
+class Boolean: public Comparable
+{
+ bool value;
+
+public:
+ Boolean(bool value) { this->value = value; }
+ bool equals(Object *other);
+ int hashValue();
+ void intoStringBuffer(misc::StringBuffer *sb);
+ int compareTo(Comparable *other);
+ inline bool getValue() { return value; }
+};
+
+
+/**
* \brief An object::Object wrapper for constant strings (char*).
*
* As opposed to object::String, the char array is not copied.