Swi::Sis::CField Class Reference
class Swi::Sis::CField : public CBase
|
This class represents a Field. Field is a basic structure found in files. It is described in SGL.GT0188.251.
Protected Member Functions
|
|
CField
()
|
void
|
CalculateCrcL
(
MSisDataProvider
&, const
TInt64
,
TUint16
&)
|
void
|
CheckedReadL
(
MSisDataProvider
&,
TDes8
&,
TInt64
&)
|
void
|
CheckedReadL
(
MSisDataProvider
&,
TDes8
&,
TInt
,
TInt64
&)
|
void
|
ConstructL
(
MSisDataProvider
&,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ConstructL
(
TPtrProvider
&,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
CreateHeader
(
TFieldType
,
TFieldLength
,
TDes8
&)
|
void
|
EnsureAlignedL
(
MSisDataProvider
&,
TInt64
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
EnsureAlignedL
(
TPtrProvider
&,
TInt64
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ReadEnumL
(
MSisDataProvider
&, EnumType &,
TInt64
&)
|
void
|
ReadEnumL
(
TPtrProvider
&, EnumType &,
TInt64
&)
|
void
|
ReadMemberArrayL
(
MSisDataProvider
&,
RPointerArray
< T > &,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ReadMemberArrayL
(
TPtrProvider
&,
RPointerArray
< T > &,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ReadMemberCollectionL
(
MSisDataProvider
&,
RPointerArray
< T > &,
TFieldType
,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ReadMemberCollectionL
(
TPtrProvider
&,
RPointerArray
< T > &,
TFieldType
,
TFieldType
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
ReadTTypeL
(
MSisDataProvider
&, T &,
TInt64
&)
|
void
|
ReadTTypeL
(
TPtrProvider
&, T &,
TInt64
&)
|
void
|
SkipUnknownFieldsL
(
MSisDataProvider
&,
TInt64
,
TInt64
&,
TReadTypeBehaviour
)
|
void
|
SkipUnknownFieldsL
(
TPtrProvider
&,
TInt64
,
TInt64
&,
TReadTypeBehaviour
)
|
Constructor & Destructor Documentation
CField(const CField &)
CField
|
(
|
const
CField
&
|
aField
|
)
|
[private]
|
Member Functions Documentation
CalculateCrcL(MSisDataProvider &, const TInt64, TUint16 &)
CheckedReadL(MSisDataProvider &, TDes8 &, TInt64 &)
CheckedReadL(MSisDataProvider &, TDes8 &, TInt, TInt64 &)
ConstructL(MSisDataProvider &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ConstructL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
TFieldType
|
aFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
The second phase constructor.
Parameters
MSisDataProvider
& aDataProvider
|
An instance of a MSisDataProvider to read the entity from.
|
TFieldType
aFieldType
|
The field type we are attempting to read.
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour
|
Whether we need to check the sis type or not.
|
ConstructL(TPtrProvider &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ConstructL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
TFieldType
|
aFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
The second phase in place constructor.
Parameters
TPtrProvider
& aDataProvider
|
An instance of a TPtrProvider to read the entity from.
|
TFieldType
aFieldType
|
The field type we are attempting to read.
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour
|
Whether we need to check the sis type or not.
|
CreateHeader(TFieldType, TFieldLength, TDes8 &)
void
|
CreateHeader
|
(
|
TFieldType
|
aFieldType,
|
|
TFieldLength
|
aFieldLength,
|
|
TDes8
&
|
aHeader
|
|
)
|
[protected, static]
|
Parameters
TFieldType
aFieldType
|
|
TFieldLength
aFieldLength
|
|
TDes8
& aHeader
|
|
EnsureAlignedL(MSisDataProvider &, TInt64, TInt64 &, TReadTypeBehaviour)
void
|
EnsureAlignedL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
TInt64
|
aBytesConsumed,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
EnsureAlignedL(TPtrProvider &, TInt64, TInt64 &, TReadTypeBehaviour)
void
|
EnsureAlignedL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
TInt64
|
aBytesConsumed,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
FieldType()
TFieldType
|
FieldType
|
(
|
)
|
const
|
This function returns the value of the Type part of the Field.
HeaderSize(TArrayStatus)
Each SISField has and header comprising its type and its length. This last attribute has variable size. This method can be used to ascertain the size of the header.
Length()
IMPORT_C
TFieldLength
|
Length
|
(
|
)
|
const
|
This function returns the value of the Length part of the Field.
PaddingSize()
TInt
|
PaddingSize
|
(
|
)
|
const [inline]
|
SISFields can be padded, use this function to learn how many padding bytes are used in this SISField.
ReadEnumL(MSisDataProvider &, EnumType &, TInt64 &)
void
|
ReadEnumL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
EnumType &
|
aValue,
|
|
TInt64
&
|
aBytesRead
|
|
)
|
[protected, static, inline]
|
ReadEnumL(TPtrProvider &, EnumType &, TInt64 &)
void
|
ReadEnumL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
EnumType &
|
aValue,
|
|
TInt64
&
|
aBytesRead
|
|
)
|
[protected, static, inline]
|
ReadLengthL(MSisDataProvider &, TInt64 &)
ReadLengthL(TPtrProvider &, TInt64 &)
ReadMemberArrayL(MSisDataProvider &, RPointerArray< T > &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadMemberArrayL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
RPointerArray
< T > &
|
aArray,
|
|
TFieldType
|
aExpectedInternalField,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour = EReadType
|
|
)
|
[protected]
|
ReadMemberArrayL(TPtrProvider &, RPointerArray< T > &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadMemberArrayL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
RPointerArray
< T > &
|
aArray,
|
|
TFieldType
|
aExpectedInternalField,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour = EReadType
|
|
)
|
[protected]
|
Parameters
TPtrProvider
& aDataProvider
|
|
RPointerArray
< T > & aArray
|
|
TFieldType
aExpectedInternalField
|
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour = EReadType
|
|
ReadMemberCollectionL(MSisDataProvider &, RPointerArray< T > &, TFieldType, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadMemberCollectionL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
RPointerArray
< T > &
|
aArray,
|
|
TFieldType
|
aExpectedInternalField,
|
|
TFieldType
|
aTerminatingInternalFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour = EReadType
|
|
)
|
[protected]
|
Parameters
MSisDataProvider
& aDataProvider
|
|
RPointerArray
< T > & aArray
|
|
TFieldType
aExpectedInternalField
|
|
TFieldType
aTerminatingInternalFieldType
|
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour = EReadType
|
|
ReadMemberCollectionL(TPtrProvider &, RPointerArray< T > &, TFieldType, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadMemberCollectionL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
RPointerArray
< T > &
|
aArray,
|
|
TFieldType
|
aExpectedInternalField,
|
|
TFieldType
|
aTerminatingInternalFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour = EReadType
|
|
)
|
[protected]
|
Parameters
TPtrProvider
& aDataProvider
|
|
RPointerArray
< T > & aArray
|
|
TFieldType
aExpectedInternalField
|
|
TFieldType
aTerminatingInternalFieldType
|
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour = EReadType
|
|
ReadTTypeL(MSisDataProvider &, T &, TInt64 &)
void
|
ReadTTypeL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
T &
|
aValue,
|
|
TInt64
&
|
aBytesRead
|
|
)
|
[protected, static, inline]
|
ReadTTypeL(TPtrProvider &, T &, TInt64 &)
void
|
ReadTTypeL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
T &
|
aValue,
|
|
TInt64
&
|
aBytesRead
|
|
)
|
[protected, static, inline]
|
ReadTypeL(MSisDataProvider &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadTypeL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
TFieldType
|
aFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[private]
|
Parameters
MSisDataProvider
& aDataProvider
|
|
TFieldType
aFieldType
|
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour
|
|
ReadTypeL(TPtrProvider &, TFieldType, TInt64 &, TReadTypeBehaviour)
void
|
ReadTypeL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
TFieldType
|
aFieldType,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[private]
|
Parameters
TPtrProvider
& aDataProvider
|
|
TFieldType
aFieldType
|
|
TInt64
& aBytesRead
|
|
TReadTypeBehaviour
aTypeReadBehaviour
|
|
SkipUnknownFieldsL(MSisDataProvider &, TInt64, TInt64 &, TReadTypeBehaviour)
void
|
SkipUnknownFieldsL
|
(
|
MSisDataProvider
&
|
aDataProvider,
|
|
TInt64
|
aBytesConsumed,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
SkipUnknownFieldsL(TPtrProvider &, TInt64, TInt64 &, TReadTypeBehaviour)
void
|
SkipUnknownFieldsL
|
(
|
TPtrProvider
&
|
aDataProvider,
|
|
TInt64
|
aBytesConsumed,
|
|
TInt64
&
|
aBytesRead,
|
|
TReadTypeBehaviour
|
aTypeReadBehaviour
|
|
)
|
[protected]
|
operator=(const CField &)
Member Enumerations Documentation
Member Data Documentation
TInt
iHeaderSize
TInt
|
iHeaderSize
|
[private]
|
Size of the SISField header if it were not stored in an array so 12 if length is stored in 8 bytes and 8 if length is stored in 4 bytes
TFieldLength
iLength
TFieldLength
|
iLength
|
[private]
|
TFieldType
iType
TFieldType
|
iType
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.