equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 // |
19 // |
20 |
20 |
21 |
21 |
22 |
22 |
23 // Include Files |
23 // Include Files |
|
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "cbertlvTraces.h" |
|
28 #endif |
|
29 |
24 #include "CBerTlv.h" // Header of this class |
30 #include "CBerTlv.h" // Header of this class |
25 #include "tflogger.h" // For logging |
|
26 |
31 |
27 // External Data Structures |
32 // External Data Structures |
28 // none |
33 // none |
29 |
34 |
30 // External Function Prototypes |
35 // External Function Prototypes |
74 CTlv* aTlv, // TLV |
79 CTlv* aTlv, // TLV |
75 TUint8 aTlvTagValue, // TLV identifier |
80 TUint8 aTlvTagValue, // TLV identifier |
76 TInt itemNbr // Item number |
81 TInt itemNbr // Item number |
77 ) |
82 ) |
78 { |
83 { |
79 TFLOGSTRING("UTILITY: CBerTlv::TlvByTagValue"); |
84 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CBERTLV_TLVBYTAGVALUE_1, "UTILITY: CBerTlv::TlvByTagValue"); |
80 TInt currentTlv( 0 ); |
85 TInt currentTlv( 0 ); |
81 TInt tlvLength( 0 ); |
86 TInt tlvLength( 0 ); |
82 TInt index( 0 ); |
87 TInt index( 0 ); |
83 |
88 |
84 // TLV start index |
89 // TLV start index |
144 ( |
149 ( |
145 CTlv* aTlv, // TLV to fill |
150 CTlv* aTlv, // TLV to fill |
146 TUint8 aTlvTagValue // Tag of TLV to find |
151 TUint8 aTlvTagValue // Tag of TLV to find |
147 ) |
152 ) |
148 { |
153 { |
149 TFLOGSTRING("UTILITY: CBerTlv::TlvByTagValueMulti"); |
154 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CBERTLV_TLVBYTAGVALUEMULTI_1, "UTILITY: CBerTlv::TlvByTagValueMulti"); |
150 TInt currentTlv( 0 ); |
155 TInt currentTlv( 0 ); |
151 TInt16 tlvLength( 0 ); |
156 TInt16 tlvLength( 0 ); |
152 TInt indMulti( 0 ); |
157 TInt indMulti( 0 ); |
153 TInt16 multiLength( 0 ); |
158 TInt16 multiLength( 0 ); |
154 // TLV start index |
159 // TLV start index |