changed attributes of header files
[platform/core/location/maps-plugin-here.git] / inc / engine / base / BaseBufferBase.h
1 //
2 // Copyright (c) 2012 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 #ifndef BASE_BUFFER_BASE_H
18 #define BASE_BUFFER_BASE_H
19
20 #include "common/HereMaps_global.h"
21
22 TIZEN_MAPS_BEGIN_NAMESPACE
23
24 class BufferBase
25 {
26 public:
27         BufferBase(void);
28         virtual ~BufferBase(void);
29
30         int GetCapacity(void) const;
31         int GetLimit(void) const;
32
33         class _BufferData
34         {
35         public:
36                 _BufferData(void);
37                 virtual ~_BufferData(void);
38                 byte* GetArray(void);
39
40
41                 // Attribute
42                 unsigned long long capacityInByte;
43                 long refCount;
44         }; // _BufferData
45
46         int _capacity;
47         int _position;
48         int _limit;
49         int _mark;
50         _BufferData* _pData;
51         byte* __pArrayStart;
52 }; // BufferBase
53
54 TIZEN_MAPS_END_NAMESPACE
55
56 #endif /* BASE_BUFFER_BASE_H */