Windows C++ Library
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
CStrTok Class Reference

#include <StrTok.hpp>

List of all members.

Public Types

enum  Flags { NONE = 0x0000, MERGE_SEPS = 0x0001, RETURN_SEPS = 0x0002 }

Public Member Functions

 CStrTok (const tchar *pszString, tchar cSep, int nFlags=NONE)
 CStrTok (const tchar *pszString, const tchar *pszSeps, int nFlags=NONE)
 ~CStrTok ()
bool MoreTokens () const
CString NextToken ()

Static Public Member Functions

static size_t Split (const tchar *pszString, tchar cSep, CStrArray &astrFields, uint nFlags=NONE)
static size_t Split (const tchar *pszString, const tchar *pszSeps, CStrArray &astrFields, uint nFlags=NONE)

Protected Types

enum  TokenType { END_TOKEN = -1, VALUE_TOKEN = 1, SEPARATOR_TOKEN = 2 }

Protected Attributes

const tchar * m_pszString
CString m_strSeps
uint m_nFlags
TokenType m_eNextToken

Private Member Functions

 CStrTok (const CStrTok &)
CStrTokoperator= (const CStrTok &)

Member Enumeration Documentation

Enumerator:
NONE 
MERGE_SEPS 
RETURN_SEPS 
enum CStrTok::TokenType [protected]
Enumerator:
END_TOKEN 
VALUE_TOKEN 
SEPARATOR_TOKEN 

Constructor & Destructor Documentation

CStrTok::CStrTok ( const tchar *  pszString,
tchar  cSep,
int  nFlags = NONE 
)
CStrTok::CStrTok ( const tchar *  pszString,
const tchar *  pszSeps,
int  nFlags = NONE 
)
CStrTok::CStrTok ( const CStrTok ) [private]

Member Function Documentation

bool CStrTok::MoreTokens ( ) const [inline]
size_t CStrTok::Split ( const tchar *  pszString,
tchar  cSep,
CStrArray astrFields,
uint  nFlags = NONE 
) [static]
size_t CStrTok::Split ( const tchar *  pszString,
const tchar *  pszSeps,
CStrArray astrFields,
uint  nFlags = NONE 
) [static]
CStrTok& CStrTok::operator= ( const CStrTok ) [private]

Member Data Documentation

const tchar* CStrTok::m_pszString [protected]
uint CStrTok::m_nFlags [protected]

The documentation for this class was generated from the following files: