diff --git a/a8/xobject.h b/a8/xobject.h index a4f308d..566b35e 100644 --- a/a8/xobject.h +++ b/a8/xobject.h @@ -27,6 +27,9 @@ namespace a8 ~XObject(); unsigned char GetType(); + bool IsSimple() { return GetType() == XOT_SIMPLE; }; + bool IsArray() { return GetType() == XOT_ARRAY; }; + bool IsObject() { return GetType() == XOT_OBJECT; }; int Size(); void Reset(); void DeepCopy(a8::XObject& to);