|
1 /* |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * As specified in SGL.GT0188.251 |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedPartner |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef __SISDATAINDEX_H__ |
|
27 #define __SISDATAINDEX_H__ |
|
28 |
|
29 |
|
30 #include "structure.h" |
|
31 #include "numeric.h" |
|
32 |
|
33 |
|
34 class CSISDataIndex : public CStructure <CSISFieldRoot::ESISDataIndex> |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Default constructor |
|
39 */ |
|
40 CSISDataIndex (); |
|
41 /** |
|
42 * Copy constructor |
|
43 */ |
|
44 CSISDataIndex (const CSISDataIndex& aInitialiser); |
|
45 /** |
|
46 * Class Name |
|
47 */ |
|
48 virtual std::string Name () const; |
|
49 /** |
|
50 * Externalize the class. |
|
51 * @param aFile Stream to which the content to be written. |
|
52 * @param aIsArrayElement true if this structure is part of an array else false. |
|
53 */ |
|
54 virtual void Write (TSISStream& aFile, const bool aIsArrayElement) const; |
|
55 |
|
56 /** |
|
57 * Set a new value to data index. |
|
58 * @param aIndex new data index value. |
|
59 */ |
|
60 void SetIndex (const TUint32 aIndex); |
|
61 /** |
|
62 * Get the data index value. |
|
63 */ |
|
64 TUint32 Index () const; |
|
65 |
|
66 private: |
|
67 CSISUInt32 iIndex; |
|
68 }; |
|
69 |
|
70 |
|
71 inline CSISDataIndex::CSISDataIndex () |
|
72 { |
|
73 InsertMember (iIndex); |
|
74 } |
|
75 |
|
76 inline CSISDataIndex::CSISDataIndex (const CSISDataIndex& aInitialiser) : |
|
77 CStructure <CSISFieldRoot::ESISDataIndex> (aInitialiser), |
|
78 iIndex (aInitialiser.iIndex) |
|
79 { |
|
80 InsertMember (iIndex); |
|
81 } |
|
82 |
|
83 |
|
84 inline std::string CSISDataIndex::Name () const |
|
85 { |
|
86 return "Data Index"; |
|
87 } |
|
88 |
|
89 |
|
90 inline void CSISDataIndex::SetIndex (const TUint32 aIndex) |
|
91 { |
|
92 iIndex = aIndex; |
|
93 } |
|
94 |
|
95 |
|
96 inline TUint32 CSISDataIndex::Index () const |
|
97 { |
|
98 return iIndex; |
|
99 } |
|
100 |
|
101 |
|
102 inline void CSISDataIndex::Write (TSISStream& aFile, const bool aIsArrayElement) const |
|
103 { |
|
104 CStructure <CSISFieldRoot::ESISDataIndex>::Write (aFile, aIsArrayElement); |
|
105 } |
|
106 |
|
107 #endif // __SISDATE_H__ |
|
108 |