License conversion from Flora to Apache 2.0
[platform/core/uifw/dali-core.git] / dali / public-api / object / type-info.cpp
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/public-api/object/type-info.h>
20
21 // EXTERNAL INCLUDES
22
23 // INTERNAL INCLUDES
24 #include <dali/internal/event/common/type-info-impl.h>
25
26 namespace Dali
27 {
28
29 TypeInfo::TypeInfo()
30 {
31 }
32
33 TypeInfo::~TypeInfo()
34 {
35 }
36
37 const std::string& TypeInfo::GetName()
38 {
39   return GetImplementation(*this).GetName();
40 }
41
42 const std::string& TypeInfo::GetBaseName()
43 {
44   return GetImplementation(*this).GetBaseName();
45 }
46
47 BaseHandle TypeInfo::CreateInstance()
48 {
49   return GetImplementation(*this).CreateInstance();
50 }
51
52 TypeInfo::CreateFunction TypeInfo::GetCreator()
53 {
54   return GetImplementation(*this).GetCreator();
55 }
56
57 TypeInfo::NameContainer TypeInfo::GetActions()
58 {
59   return GetImplementation(*this).GetActions();
60 }
61
62 TypeInfo::NameContainer TypeInfo::GetSignals()
63 {
64   return GetImplementation(*this).GetSignals();
65 }
66
67 void TypeInfo::GetPropertyIndices( Property::IndexContainer& indices ) const
68 {
69   indices.clear(); // We do not want to clear the container if called internally, so only clear here
70   GetImplementation(*this).GetPropertyIndices( indices );
71 }
72
73 const std::string& TypeInfo::GetPropertyName( Property::Index index ) const
74 {
75   return GetImplementation(*this).GetPropertyName( index );
76 }
77
78 TypeInfo::TypeInfo(Internal::TypeInfo* internal)
79 : BaseHandle(internal)
80 {
81 }
82
83 } // namespace Dali
84