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