ccString

09/09/99

Author: Daniel.Lindh@Home.se
ICQ: 7983755
HOMEPAGE: home.bip.net/CyberCow

Copyright © Cyber Cow 1995 - 1999.
All Rights Reserved.

OverView
Class Members
Base Class CString

  

Overview

#include <ccString.h>

Hierarchy Chart


A simple CString derived class with some new methods for use with numeric types.

 

Class Members

Data Items:

Private:

None

Construction

Public:

ccString

Creates the ccString object

Input/Output

Public:

operator =

Assign the an integer value to the ccString

operator int

The ccString object returns an integer value.

Protected:

None

Private:

None

 

 

ccString::ccString

ccString()

ccString( int aiNumber )

Return Value:

None

Arguments:

aiNumber

The ccString object will be created with the aiNumber in text form.  

Remarks:

Create the ccString object.

Example:

ccString lsFileName;
ccString lsMaxAllowedFileSize( 10 );

 

ccString::operator =

CString& operator = (int aiNumber); 

Return Value:

CString&

The aiNumber as a CString formated object.

Arguments:

aiNumber

The number that will be converted to a CString, and be returned.

Remarks:

This member will convert the aiNumber parameter to a CString object.

Example:

ccString lsMaxAllowedFileSize;

lsMaxAllowedFileSize = 10;

 

ccString::operator int

operator int();

Return Value:

None

Arguments:

None

Remarks:

This member will be used when casting a ccString object to an integer. If the number in the ccString is larger then the maximum allowed int value, it will be typcaste to an int and you will get a strange value.

Example:

ccString lsMaxAllowedFileSize;

lsMaxAllowedFileSize = 10;

int liMaxAllowedFileSize = lsMaxAllowedFileSize;