diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/llcommon/metaproperty.cpp |
Print done when done.
Diffstat (limited to 'indra/llcommon/metaproperty.cpp')
-rw-r--r-- | indra/llcommon/metaproperty.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/indra/llcommon/metaproperty.cpp b/indra/llcommon/metaproperty.cpp new file mode 100644 index 0000000000..befee61a8a --- /dev/null +++ b/indra/llcommon/metaproperty.cpp @@ -0,0 +1,35 @@ +/** + * @file metaproperty.cpp + * @author Babbage + * @date 2006-05-15 + * @brief Implementation of LLMetaProperty. + * + * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#include "metaproperty.h" +#include "metaclass.h" + +LLMetaProperty::LLMetaProperty(const std::string& name, const LLMetaClass& object_class) : + mName(name), mObjectClass(object_class) +{ +} + +//virtual +LLMetaProperty::~LLMetaProperty() +{ +} + +const LLMetaClass& LLMetaProperty::getObjectMetaClass() const +{ + return mObjectClass; +} +
+void LLMetaProperty::checkObjectClass(const LLReflective* object) const +{ + if(! mObjectClass.isInstance(object)) + { + throw "class cast exception"; + } +} |