2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali/public-api/object/type-info.h>
24 #include <dali/internal/event/common/type-info-impl.h>
37 TypeInfo::TypeInfo(const TypeInfo& copy)
42 TypeInfo& TypeInfo::operator=(const TypeInfo& rhs)
44 BaseHandle::operator=(rhs);
48 TypeInfo& TypeInfo::operator=(BaseHandle::NullType* rhs)
50 DALI_ASSERT_ALWAYS( (rhs == NULL) && "Can only assign NULL pointer to handle");
55 const std::string& TypeInfo::GetName() const
57 return GetImplementation(*this).GetName();
60 const std::string& TypeInfo::GetBaseName() const
62 return GetImplementation(*this).GetBaseName();
65 BaseHandle TypeInfo::CreateInstance() const
67 return GetImplementation(*this).CreateInstance();
70 TypeInfo::CreateFunction TypeInfo::GetCreator() const
72 return GetImplementation(*this).GetCreator();
75 void TypeInfo::GetActions( TypeInfo::NameContainer& container ) const
77 GetImplementation(*this).GetActions( container );
80 void TypeInfo::GetSignals( TypeInfo::NameContainer& container ) const
82 GetImplementation(*this).GetSignals( container );
85 void TypeInfo::GetProperties( TypeInfo::NameContainer& container ) const
87 GetImplementation(*this).GetProperties( container );
90 void TypeInfo::GetPropertyIndices( Property::IndexContainer& indices ) const
92 indices.clear(); // We do not want to clear the container if called internally, so only clear here
93 GetImplementation(*this).GetPropertyIndices( indices );
96 const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
98 return GetImplementation(*this).GetPropertyName( index );
101 TypeInfo::TypeInfo(Internal::TypeInfo* internal)
102 : BaseHandle(internal)