MDA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
MDAT::StrTok Class Reference

A string tokenizer class which in difference to standard C is thread save. More...

#include <utils.hpp>

Public Member Functions

 StrTok (char *str)
 Constructor. More...
 
 StrTok ()
 Constructor.
 
void set (char *str)
 Set a new string. More...
 
char * next (const char *sep)
 Gets the next part of the string. More...
 

Detailed Description

A string tokenizer class which in difference to standard C is thread save.

Constructor & Destructor Documentation

MDAT::StrTok::StrTok ( char *  str)

Constructor.

Parameters
strThe string to use.

Member Function Documentation

char * MDAT::StrTok::next ( const char *  sep)

Gets the next part of the string.

Parameters
sepThe seperator to use.
void MDAT::StrTok::set ( char *  str)
inline

Set a new string.

Parameters
strThe string.