14 #ifndef BERRYOBJECTGENERIC_H_
15 #define BERRYOBJECTGENERIC_H_
51 if(
const Self* other =
dynamic_cast<const Self*
>(o))
52 return (this->m_Value == other->m_Value);
59 std::stringstream myStr;
60 std::locale originalLocale = myStr.getloc();
64 myStr.imbue(originalLocale);
70 return other.
Cast<
const Self>() != 0;
77 if (specOther && this->m_Value != specOther->m_Value)
79 this->m_Value = specOther->m_Value;
99 #define berrySpecializeGenericObject(ObjectName,Type,DefaultValue) \
100 class org_blueberry_core_runtime_EXPORT ObjectName: public ::berry::ObjectGeneric< Type > \
103 berryObjectMacro(ObjectName); \
104 ObjectName() : ::berry::ObjectGeneric< Type >(DefaultValue) { } \
105 ObjectName(Type x) : ::berry::ObjectGeneric<Type>(x) {} \
106 QString ToString() const { QString txt; QTextStream ts(&txt); ts << m_Value; return txt; } \