Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Utility::VersionParser Class Reference

List of all members.

Public Types

enum  Token {
  Token_EOS = -1, Token_Unknown = 0, Token_Number = 1, Token_Dot = 2,
  Token_Develop = 3, Token_Alpha = 4, Token_Beta = 5, Token_Final = 6
}

Public Member Functions

 VersionParser (const CP_String &inString)
Token GetToken ()
UInt32 GetTokenValue () const

Protected Member Functions

bool IsDigit (const CPUniChar ch)
CPUniChar GetNextInputChar ()

Protected Attributes

CP_String fStringToParse
UInt32 fTokenValue
CPUniChar fCurrentChar
UInt32 fPosition

Detailed Description

Converts the passed in CP_String to a long version (an UInt32)

Parameters:
inStringData The string to convert.
Exceptions:
CP_ThrowRuntime if the input string cannot be parsed as version
Returns:
UInt32 version The converted string data.


Member Enumeration Documentation

enum CP_Utility::VersionParser::Token
 

Enumeration values:
Token_EOS 
Token_Unknown 
Token_Number 
Token_Dot 
Token_Develop 
Token_Alpha 
Token_Beta 
Token_Final 


Constructor & Destructor Documentation

CP_Utility::VersionParser::VersionParser const CP_String inString  ) 
 


Member Function Documentation

Token CP_Utility::VersionParser::GetToken  ) 
 

UInt32 CP_Utility::VersionParser::GetTokenValue  )  const
 

bool CP_Utility::VersionParser::IsDigit const CPUniChar  ch  )  [protected]
 

CPUniChar CP_Utility::VersionParser::GetNextInputChar  )  [protected]
 


Member Data Documentation

CP_String CP_Utility::VersionParser::fStringToParse [protected]
 

UInt32 CP_Utility::VersionParser::fTokenValue [protected]
 

CPUniChar CP_Utility::VersionParser::fCurrentChar [protected]
 

UInt32 CP_Utility::VersionParser::fPosition [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 17 20:02:40 2005 for CPLAT by  doxygen 1.4.0