C++ MonsterDoc:
AuCStrToPStr

Home
Contact
Copyright
||
All Classes ||
||overview|| ||access|| ||inheritance|| ||descriptions||

Class Overview

The AuCStrToPStr is designed to provide a temporary change of string type from a C-style string to a Pascal-style string. When a C-style string is passed to the constructor, it is converted to a Pascal-style string. Upon destruction, the string is converted back to a C-style string.

Stop AlertOnce a C-style string has been passed into the constructor of this class, it will no longer be a valid C-style string until the destructor of this class is called.

Inheritance

This class has no ancestors.

Requirements

This class has no additional requirements.

Files

  • AuStrConvert.h
  • AuStrConvert.ip
  • AuStrConvert.cp

||overview|| ||access|| ||inheritance|| ||descriptions||

Members by Access

public

AuCStrToPStr(
unsigned char* inPStr
);

~AuCStrToPStr(
void
);

inline
unsigned char*
PStr(
void
);

protected

private

unsigned char*
myPStr;

AuCStrToPStr(
void
);

AuCStrToPStr(
const AuCStrToPStr&
);

const AuCStrToPStr&
operator=(
const AuCStrToPStr&
);

||overview|| ||access|| ||inheritance|| ||descriptions||

Members by Inheritance

statics

There are no static methods introduced with this class.

overrides

This class does not override any methods.

new virtuals

There are no virtual functions introduced with this class.

||overview|| ||access|| ||inheritance|| ||descriptions||

Member Descriptions

Member Data

unsigned char*
myPStr;

This is the address of the string which will need to be converted back to a C-string upon destruction.

AuCStrToPStr

Converts a C-style string to a Pascal-style string.

AuCStrToPStr(
unsigned char* inPStr
);

The argument is the C-style string to convert.

AuCStrToPStr(
void
);

This constructor is not implemented.

AuCStrToPStr(
const AuCStrToPStr&
);

This constructor is not implemented.

~AuCStrToPStr

~AuCStrToPStr(
void
);

Converts the string back to a C-style string.

PStr

inline
unsigned char*
PStr(
void
);

Accesses the string as an unsigned char* so that you can avoid using a type-cast. Although you can still access the string with the variable passed to the constructor, it will have the wrong type for most uses.

operator=

const AuCStrToPStr&
operator=(
const AuCStrToPStr&
);

This operator is not implemented.


©1999-2004 Monsterworks

Last Modified: Monday, October 2, 2000