diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-18 18:22:14 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-18 18:22:14 +0100 |
commit | a30e627ffccf36384689295ce54af32e38ef5ef8 (patch) | |
tree | ffd03045f2f292da9d9f2d684d166093abaf7a21 /src/core/common/Rtti.cpp | |
parent | 1ebaaf08c0bc7de704a3c2a423f572c54c4a069b (diff) |
Droped Rtti<T> class, using RttiType instead
Diffstat (limited to 'src/core/common/Rtti.cpp')
-rw-r--r-- | src/core/common/Rtti.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/common/Rtti.cpp b/src/core/common/Rtti.cpp index 6809911..ad77973 100644 --- a/src/core/common/Rtti.cpp +++ b/src/core/common/Rtti.cpp @@ -45,9 +45,9 @@ const RttiType &RttiStore::lookup(const std::type_info &native) } } -/* Class RttiBuilder */ +/* Class RttiBuilderBase */ -RttiBuilder &RttiBuilder::genericMethod(const std::string name, +RttiBuilderBase &RttiBuilderBase::genericMethod(const std::string &name, std::shared_ptr<Function> function) { if (!methods.emplace(name, function).second) { @@ -58,8 +58,8 @@ RttiBuilder &RttiBuilder::genericMethod(const std::string name, return *this; } -RttiBuilder &RttiBuilder::genericProperty( - const std::string name, std::shared_ptr<PropertyDescriptor> property) +RttiBuilderBase &RttiBuilderBase::genericProperty( + const std::string &name, std::shared_ptr<PropertyDescriptor> property) { if (!properties.emplace(name, property).second) { throw OusiaException(std::string("Property with name \"") + name + @@ -174,7 +174,7 @@ bool RttiType::hasProperty(const std::string &name) const /* Constant initialization */ namespace RttiTypes { -const RttiType None{"unknown"}; +const RttiType None{"none"}; const RttiType Nullptr{"nullptr"}; const RttiType Bool{"bool"}; const RttiType Int{"int"}; |