metaproperty.cpp

Go to the documentation of this file.
00001 
00034 #include "linden_common.h" 
00035 
00036 #include "metaproperty.h"
00037 
00038 #include "metaclass.h"
00039 
00040 LLMetaProperty::LLMetaProperty(const std::string& name, const LLMetaClass& object_class) : 
00041         mName(name), mObjectClass(object_class) 
00042 {
00043 }
00044 
00045 //virtual 
00046 LLMetaProperty::~LLMetaProperty()
00047 {
00048 }
00049 
00050 const LLMetaClass& LLMetaProperty::getObjectMetaClass() const
00051 {
00052         return mObjectClass;
00053 }
00054 
00055 void LLMetaProperty::checkObjectClass(const LLReflective* object) const
00056 {
00057         if(! mObjectClass.isInstance(object))
00058         {
00059                 throw "class cast exception";
00060         }
00061 }

Generated on Thu Jul 1 06:09:56 2010 for Second Life Viewer by  doxygen 1.4.7