revise installing a license file
[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
30 const int gExampleConstant = 0;
31
32 void ExampleNonMemberFunction()
33 {
34 }
35
36 } // unnamed namespace end
37
38 namespace Dali
39 {
40
41 namespace Internal
42 {
43
44 ExampleClass::ExampleClass()
45 {
46 }
47
48 ExampleClass::ExampleClass(const string& name)
49 : mName(name)
50 {
51 }
52
53 ExampleClass::~ExampleClass()
54 {
55 }
56
57 void ExampleClass::SetName(const string& name)
58 {
59   mName = name;
60
61   // Notify derived classes
62   OnNameSet();
63 }
64
65 void ExampleClass::HelperMember(ExampleEnum exampleParam)
66 {
67   // TODO
68 }
69
70 } // namespace Internal
71
72 } // namespace Dali