Moved TextAbstraction to use absolute paths
[platform/core/uifw/dali-adaptor.git] / text / dali / internal / text-abstraction / segmentation-impl.h
1 #ifndef __DALI_INTERNAL_TEXT_ABSTRACTION_SEGMENTATION_IMPL_H__
2 #define __DALI_INTERNAL_TEXT_ABSTRACTION_SEGMENTATION_IMPL_H__
3
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/object/base-object.h>
23
24 // INTERNAL INCLUDES
25 #include <dali/public-api/text-abstraction/segmentation.h>
26
27 namespace Dali
28 {
29
30 namespace Internal
31 {
32
33 namespace TextAbstraction
34 {
35
36 /**
37  * Implementation of the Segmentation
38  */
39
40 class Segmentation :  public Dali::BaseObject
41 {
42 public:
43
44   /**
45    * Constructor
46    */
47   Segmentation();
48
49   /**
50    * Destructor
51    */
52   ~Segmentation();
53
54   /**
55    * @copydoc Dali::Segmentation::Get()
56    */
57   static Dali::TextAbstraction::Segmentation Get();
58
59 private:
60
61   // Undefined copy constructor.
62   Segmentation( const Segmentation& );
63
64   // Undefined assignment constructor.
65   Segmentation& operator=( Segmentation& );
66
67   void* mPlugin; ///< TODO replace this with segmentation plugin
68
69 }; // class Segmentation
70
71
72 } // namespace TextAbstraction
73
74 } // namespace Internal
75
76 inline static Internal::TextAbstraction::Segmentation& GetImplementation(Dali::TextAbstraction::Segmentation& reordering)
77 {
78   DALI_ASSERT_ALWAYS( reordering && "reordering handle is empty" );
79   BaseObject& handle = reordering.GetBaseObject();
80   return static_cast<Internal::TextAbstraction::Segmentation&>(handle);
81 }
82
83 inline static const  Internal::TextAbstraction::Segmentation& GetImplementation(const Dali::TextAbstraction::Segmentation& reordering)
84 {
85   DALI_ASSERT_ALWAYS( reordering && "reordering handle is empty" );
86   const BaseObject& handle = reordering.GetBaseObject();
87   return static_cast<const Internal::TextAbstraction::Segmentation&>(handle);
88 }
89
90 } // namespace Dali
91
92 #endif // __DALI_INTERNAL_TEXT_ABSTRACTION_SEGMENTATION_IMPL_H__