|
1 // CDecoderExifTag.inl |
|
2 // inline implementation for the CDecoderExifTag class. |
|
3 |
|
4 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 // All rights reserved. |
|
6 // This component and the accompanying materials are made available |
|
7 // under the terms of "Eclipse Public License v1.0" |
|
8 // which accompanies this distribution, and is available |
|
9 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 // |
|
11 // Initial Contributors: |
|
12 // Nokia Corporation - initial contribution. |
|
13 // |
|
14 // Contributors: |
|
15 // |
|
16 // Description: |
|
17 // |
|
18 |
|
19 #ifndef __CDecoderExifTag_INL__ |
|
20 #define __CDecoderExifTag_INL__ |
|
21 |
|
22 // CDecoderExifTag |
|
23 |
|
24 // Set tag value |
|
25 inline void CDecoderExifTag::SetTag(TUint aTag) |
|
26 { |
|
27 iTag = aTag; |
|
28 } |
|
29 |
|
30 // Set format, of which there are ten types, each with a defined size |
|
31 inline void CDecoderExifTag::SetFormat(TUint aFormat) |
|
32 { |
|
33 iFormat = aFormat; |
|
34 } |
|
35 |
|
36 // Set the number of components in an entry (i.e. a single integer would |
|
37 // be 1, whereas the NULL terminated string 'Camera' would be 6. |
|
38 inline void CDecoderExifTag::SetComponentCount(TUint aComponentCount) |
|
39 { |
|
40 iComponentCount = aComponentCount; |
|
41 } |
|
42 |
|
43 // Set the value/offset segment |
|
44 inline void CDecoderExifTag::SetValueOffset(TUint aValueOffset) |
|
45 { |
|
46 iValueOffset = aValueOffset; |
|
47 } |
|
48 |
|
49 inline void CDecoderExifTag::SetNumer(TInt aNumer) |
|
50 { |
|
51 iNumer = aNumer; |
|
52 } |
|
53 |
|
54 inline void CDecoderExifTag::SetDenom(TInt aDenom) |
|
55 { |
|
56 iDenom = aDenom; |
|
57 } |
|
58 |
|
59 inline const TUint CDecoderExifTag::Tag() |
|
60 { |
|
61 return iTag; |
|
62 } |
|
63 |
|
64 inline const TUint CDecoderExifTag::Format() |
|
65 { |
|
66 return iFormat; |
|
67 } |
|
68 |
|
69 inline const TUint CDecoderExifTag::ComponentCount() |
|
70 { |
|
71 return iComponentCount; |
|
72 } |
|
73 |
|
74 inline const TUint CDecoderExifTag::ValueOffset() |
|
75 { |
|
76 return iValueOffset; |
|
77 } |
|
78 |
|
79 inline const TInt CDecoderExifTag::Numer() |
|
80 { |
|
81 return iNumer; |
|
82 } |
|
83 |
|
84 inline const TInt CDecoderExifTag::Denom() |
|
85 { |
|
86 return iDenom; |
|
87 } |
|
88 |
|
89 #endif // __CDecoderExifTag_INL__ |
|
90 |
|
91 |
|
92 |