DALi Version 2.2.21
[platform/core/uifw/dali-core.git] / docs / templates / example-class-internal.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 "example-class-internal.h"
20
21 // System includes
22 #include <algorithm>
23
24 // Dali includes
25 #include "actor.h"
26
27 namespace // unnamed namespace start
28 {
29 const int gExampleConstant = 0;
30
31 void ExampleNonMemberFunction()
32 {
33 }
34
35 } // namespace
36
37 namespace Dali
38 {
39 namespace Internal
40 {
41 ExampleClass::ExampleClass()
42 {
43 }
44
45 ExampleClass::ExampleClass(const string& name)
46 : mName(name)
47 {
48 }
49
50 ExampleClass::~ExampleClass()
51 {
52 }
53
54 void ExampleClass::SetName(const string& name)
55 {
56   mName = name;
57
58   // Notify derived classes
59   OnNameSet();
60 }
61
62 void ExampleClass::HelperMember(ExampleEnum exampleParam)
63 {
64   // TODO
65 }
66
67 } // namespace Internal
68
69 } // namespace Dali