Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CLibDj Class Reference

Class to contain all the libdj helper classes. More...

#include <libdj.h>

List of all members.

Public Methods

 CLibDj ()
 Empty constructor. More...

 ~CLibDj ()
 Empty destructor. More...

int stoi (string s)
 Converts a string to an int. More...

string itos (int i)
 Converts an int to a string. More...

int validateText (char c, int flags)
 Validates c against the VA_* flags. More...

int validateText (char c, string valid_chars)
 Validates c against the given char-string. More...

int validateText (string text, int flags)
 Validates the string text against the given VA_* flags. More...

int validateText (string text, string valid_chars)
 Validates the string text against the given char string. More...

string cleanText (string text, int flags)
 Removes all non-valid chars from the string text. More...

string cleanText (string text, string valid_chars)
 Removes all chars not in valid_chars from text. More...

string breakString (string &incoming, string delim)
 Breaks the first field off a string delimited by delim and returns it. More...


Public Attributes

CTextScreen TextScreen
CGfxScreen LCDScreen
CGfxScreen TouchScreen
CMP3Player MP3Player
CCellPhone CellPhone


Detailed Description

Class to contain all the libdj helper classes.

Class to be instantiated once that contains instances of the other libdj support classes


Constructor & Destructor Documentation

CLibDj::CLibDj  
 

Empty constructor.

FILE libdj.h

Id:
libdj.cpp,v 1.5 2001/11/28 01:13:15 cmicali Exp

DESCRIPTION dijinni support library

CLibDj::~CLibDj  
 

Empty destructor.


Member Function Documentation

string CLibDj::breakString string &    incoming,
string    delim
 

Breaks the first field off a string delimited by delim and returns it.

Parameters:
incoming  String to take field from, this will get modified (field and delimiter will be removed)
delim  Delimiter between fields
Returns:
The field (without delimiter) and the incoming string will be modified

string CLibDj::cleanText string    text,
string    valid_chars
 

Removes all chars not in valid_chars from text.

string CLibDj::cleanText string    text,
int    flags
 

Removes all non-valid chars from the string text.

string CLibDj::itos int    i
 

Converts an int to a string.

The same as itoa() but uses STL strings

Parameters:
i  The int to convert to a string
Returns:
The string representation of the int

int CLibDj::stoi string    s
 

Converts a string to an int.

The same as atoi() but uses STL strings

Parameters:
s  The string to convert to an int
Returns:
The int representation of the string

int CLibDj::validateText string    text,
string    valid_chars
 

Validates the string text against the given char string.

int CLibDj::validateText string    text,
int    flags
 

Validates the string text against the given VA_* flags.

int CLibDj::validateText char    c,
string    valid_chars
 

Validates c against the given char-string.

int CLibDj::validateText char    c,
int    flags
 

Validates c against the VA_* flags.


Member Data Documentation

CCellPhone CLibDj::CellPhone
 

CGfxScreen CLibDj::LCDScreen
 

CMP3Player CLibDj::MP3Player
 

CTextScreen CLibDj::TextScreen
 

CGfxScreen CLibDj::TouchScreen
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:54 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001