Asciil Class Reference

#include <asciil.h>

List of all members.

Public Member Functions

 Asciil (void)
 Asciil (char *pc)
 Asciil (Asciil &al)
 Asciil (QString &as)
 ~Asciil (void)
QString toQString (void)
void fromQString (QString &as)
void fromQString (QString &as, int iLimit)
int length (void)
char * memory (void)
int size (void)
void insert (QString as, int iStart)
void remove (int iStart, int iLength)
void replace (QString &asFind, QString &asRep)
bool isEmpty (void)
Asciiloperator= (Asciil &al)
Asciiloperator= (char *pcBuf)

Static Public Member Functions

static void renderAsAsciil (char *array, int iLength, QString as)


Detailed Description

String representation consisting of a byte indicating length, followed by character data. String length is limited to 255 characters.

Author:
James Fuller,,, <james>

Constructor & Destructor Documentation

Asciil::Asciil ( void   ) 

Default Creator

Parameters:
none 

Asciil::Asciil ( char *  pcBuf  ) 

Creator from ASCIIZ string

Parameters:
pcBuf Source

Asciil::Asciil ( Asciil al  ) 

Copy Creator

Parameters:
al Source

Asciil::Asciil ( QString &  as  ) 

Creator from QString

Parameters:
as Source

Asciil::~Asciil ( void   ) 

Destructor

Parameters:
none 
Returns:
None


Member Function Documentation

void Asciil::fromQString ( QString &  as,
int  iLimit 
)

Converter from QString with length limit

Parameters:
as Source
iLimit Length to convert

void Asciil::fromQString ( QString &  as  ) 

Converter from QString

Parameters:
as Source

void Asciil::insert ( QString  as,
int  iStart 
)

Insert string at index

Parameters:
as String to be inserted
iStart Position to insert it

bool Asciil::isEmpty ( void   ) 

Test for Empty string

Parameters:
none 
Returns:
bool True if empty

int Asciil::length ( void   ) 

Returns length of string

Parameters:
none 
Returns:
int

char * Asciil::memory ( void   ) 

Ptr to internal data allocation

Parameters:
none 
Returns:
Pointer

Asciil & Asciil::operator= ( char *  pcBuf  ) 

Converter from ASCIIZ string

Parameters:
pcBuf Source
Returns:
Reference to object

Asciil & Asciil::operator= ( Asciil al  ) 

Copy

Parameters:
al Source
Returns:
Reference to object

void Asciil::remove ( int  iStart,
int  iLength 
)

Delete characters from index

Parameters:
iStart First charater to be deleted
iLength Number of characters to be deleted

void Asciil::renderAsAsciil ( char *  array,
int  iLength,
QString  as 
) [static]

Make an Asciil string in a specified buffer

Parameters:
array Buffer
iLength Size of buffer
as String to convert

void Asciil::replace ( QString &  asFind,
QString &  asRep 
)

Replace substring

Parameters:
asFind String to remove
asRep Replacement string

int Asciil::size ( void   ) 

Return size of internal memory allocation

Parameters:
none 
Returns:
Byte count

QString Asciil::toQString ( void   ) 

Converter to QString

Parameters:
none 
Returns:
QString


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

Generated on Wed Feb 19 20:13:53 2014 for Schematux by  doxygen 1.5.7