CStifItemParser Class Reference
class CStifItemParser : public CBase
|
Public Member Functions
|
|
~CStifItemParser
()
|
IMPORT_C
TInt
|
GetChar
(const
TDesC
&,
TChar
&)
|
IMPORT_C
TInt
|
GetInt
(const
TDesC
&,
TInt
&)
|
IMPORT_C
TInt
|
GetInt
(const
TDesC
&,
TUint
&,
TRadix
)
|
IMPORT_C
TInt
|
GetNextChar
(
TChar
&)
|
IMPORT_C
TInt
|
GetNextChar
(const
TDesC
&,
TChar
&)
|
IMPORT_C
TInt
|
GetNextInt
(
TInt
&)
|
IMPORT_C
TInt
|
GetNextInt
(const
TDesC
&,
TInt
&)
|
IMPORT_C
TInt
|
GetNextInt
(
TUint
&,
TRadix
)
|
IMPORT_C
TInt
|
GetNextInt
(const
TDesC
&,
TUint
&,
TRadix
)
|
IMPORT_C
TInt
|
GetNextString
(
TPtrC
&)
|
IMPORT_C
TInt
|
GetNextString
(const
TDesC
&,
TPtrC
&)
|
IMPORT_C
TInt
|
GetString
(const
TDesC
&,
TPtrC
&)
|
IMPORT_C
CStifItemParser
*
|
NewL
(
TPtrC
,
TInt
,
TInt
)
|
IMPORT_C
CStifItemParser::TParsingType
|
ParsingType
()
|
IMPORT_C
TInt
|
Remainder
(
TPtrC
&)
|
IMPORT_C
TInt
|
SetParsingType
(
CStifItemParser::TParsingType
)
|
Constructor & Destructor Documentation
CStifItemParser(TPtrC, TInt, TInt)
CStifItemParser
|
(
|
TPtrC
|
aSection,
|
|
TInt
|
aStartPos,
|
|
TInt
|
aLength
|
|
)
|
[private]
|
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
By default Symbian OS constructor is private.
GetChar(const TDesC &, TChar &)
Get a character with a tag. Returns an error code and a reference to the parsed character. If start tag is empty the first character will be parsed and returned.
GetInt(const TDesC &, TInt &)
Get a integer(TInt) with a tag. Returns an error code and a reference to the parsed integer. If start tag is empty the first integer will be parsed and returned.
GetInt(const TDesC &, TUint &, TRadix)
IMPORT_C
TInt
|
GetInt
|
(
|
const
TDesC
&
|
aTag,
|
|
TUint
&
|
aInteger,
|
|
TRadix
|
aRadix = EDecimal
|
|
)
|
|
Get a integer(TUint) with a tag. Returns an error code and a reference to the parsed integer. If start tag is empty the first integer will be parsed and returned. With TRadix parameter can convert a number into different presentation(EBinary, EOctal, EDecimal and EHex).
Parameters
const
TDesC
& aTag
|
|
TUint
& aInteger
|
|
TRadix
aRadix = EDecimal
|
|
GetNextChar(TChar &)
IMPORT_C
TInt
|
GetNextChar
|
(
|
TChar
&
|
aCharacter
|
)
|
|
Get next character. Returns an error code and a reference to the parsed character. GetString or GetInt or GetChar must be called before call GetNextChar method.
GetNextChar(const TDesC &, TChar &)
Get next character with a tag. Returns an error code and a reference to the parsed character. If start tag is empty the next character will be parsed and returned. GetString or GetInt or GetChar must be called before call GetNextChar method.
GetNextInt(TInt &)
IMPORT_C
TInt
|
GetNextInt
|
(
|
TInt
&
|
aInteger
|
)
|
|
Get next integer(TInt). Returns an error code and a reference to the parsed integer. GetString or GetInt or GetChar must be called before call GetNextInt method.
GetNextInt(const TDesC &, TInt &)
Get next integer(TInt) with a tag. Returns an error code and a reference to the parsed integer. If start tag is empty the next integer will be parsed and returned. GetString or GetInt or GetChar must be called before call GetNextInt method.
GetNextInt(TUint &, TRadix)
IMPORT_C
TInt
|
GetNextInt
|
(
|
TUint
&
|
aInteger,
|
|
TRadix
|
aRadix = EDecimal
|
|
)
|
|
Get next integer(TUint). Returns an error code and a reference to the parsed integer. GetString or GetInt or GetChar must be called before call GetNextInt method. With TRadix parameter can convert a number into different presentation(EBinary, EOctal, EDecimal and EHex).
Parameters
TUint
& aInteger
|
|
TRadix
aRadix = EDecimal
|
|
GetNextInt(const TDesC &, TUint &, TRadix)
IMPORT_C
TInt
|
GetNextInt
|
(
|
const
TDesC
&
|
aTag,
|
|
TUint
&
|
aInteger,
|
|
TRadix
|
aRadix = EDecimal
|
|
)
|
|
Get next integer(TUint) with a tag. Returns an error code and a reference to the parsed integer. If start tag is empty the next integer will be parsed and returned. GetString or GetInt or GetChar must be called before call GetNextInt method. With TRadix parameter can convert a number into different presentation(EBinary, EOctal, EDecimal and EHex).
Parameters
const
TDesC
& aTag
|
|
TUint
& aInteger
|
|
TRadix
aRadix = EDecimal
|
|
GetNextString(TPtrC &)
IMPORT_C
TInt
|
GetNextString
|
(
|
TPtrC
&
|
aString
|
)
|
|
Get next string. Returns an error code and a reference to the parsed string. GetString or GetInt or GetChar must be called before call GetNextString method.
GetNextString(const TDesC &, TPtrC &)
Get next string with a tag. Returns an error code and a reference to the parsed string. If start tag is empty the next string will be parsed and returned. GetString or GetInt or GetChar must be called before call GetNextString method.
GetString(const TDesC &, TPtrC &)
Get a string with a tag. Returns an error code and a reference to the parsed string. If start tag is empty the first string will be parsed and returned.
ParseStartAndEndPos(TPtrC, const TDesC &, TInt &, TInt &, TInt &, TInt &)
Generig start and end position parser for given data. Returns an error code.
ParsingType()
Get current parsing type. Please see TParsingType enumeration for more inforamtion.
Remainder(TPtrC &)
Get remaining strings. Returns an error code and a reference to the remainder of the parsed line. Note: This method does not support the quote(TParsingType) feature, only GetString and GetNextString methods include support.
SetParsingType(CStifItemParser::TParsingType)
Parsing type can be given when parsing string(GetString and GetNextString). See TParsingType enumeration for more inforamtion.
Member Enumerations Documentation
Enum TParsingType
Enumerators
ENormalParsing
|
|
EQuoteStyleParsing
|
|
Member Data Documentation
TBool
iGetMethodsIndicator
TBool
|
iGetMethodsIndicator
|
[private]
|
TPtrC
iItemLineSection
TPtrC
|
iItemLineSection
|
[private]
|
Parsed section with GetItemLineL() or GetNextItemLineL() method.
TInt
iItemSkipAndMarkPos
TInt
|
iItemSkipAndMarkPos
|
[private]
|
Indicates position where start the parsing.
CStifItemParser::TParsingType
iParsingType
Parsing type indicator for GetString and GetNextString use.
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.