2 * Copyright (c) 2018 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 const std::string& TypeInfo::GetName() const
50 return GetImplementation(*this).GetName();
53 const std::string& TypeInfo::GetBaseName() const
55 return GetImplementation(*this).GetBaseName();
58 BaseHandle TypeInfo::CreateInstance() const
60 return GetImplementation(*this).CreateInstance();
63 TypeInfo::CreateFunction TypeInfo::GetCreator() const
65 return GetImplementation(*this).GetCreator();
68 size_t TypeInfo::GetActionCount() const
70 return GetImplementation(*this).GetActionCount();
73 std::string TypeInfo::GetActionName(size_t index)
75 return GetImplementation(*this).GetActionName( static_cast<uint32_t>( index ) );
78 size_t TypeInfo::GetSignalCount() const
80 return GetImplementation(*this).GetSignalCount();
83 std::string TypeInfo::GetSignalName(size_t index)
85 return GetImplementation(*this).GetSignalName( static_cast<uint32_t>( index ) );
88 size_t TypeInfo::GetPropertyCount() const
90 return GetImplementation(*this).GetPropertyCount();
93 void TypeInfo::GetPropertyIndices( Property::IndexContainer& indices ) const
95 indices.Clear(); // We do not want to clear the container if called internally, so only clear here
96 GetImplementation(*this).GetPropertyIndices( indices );
99 const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
101 return GetImplementation(*this).GetRegisteredPropertyName( index );
104 Property::Index TypeInfo::GetChildPropertyIndex( const std::string& name ) const
106 return GetImplementation(*this).GetChildPropertyIndex( name );
109 const std::string& TypeInfo::GetChildPropertyName( Property::Index index ) const
111 return GetImplementation(*this).GetChildPropertyName( index );
114 Property::Type TypeInfo::GetChildPropertyType( Property::Index index ) const
116 return GetImplementation(*this).GetChildPropertyType( index );
119 void TypeInfo::GetChildPropertyIndices( Property::IndexContainer& indices ) const
121 indices.Clear(); // We do not want to clear the container if called internally, so only clear here
122 GetImplementation(*this).GetChildPropertyIndices( indices );
125 TypeInfo::TypeInfo(Internal::TypeInfo* internal)
126 : BaseHandle(internal)