C++ MonsterDoc:
AuPStrToCStr

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

Class Overview

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

Stop AlertOnce a Pascal-style string has been passed into the constructor of this class, it will no longer be a valid Pascal-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

AuPStrToCStr(
char* inCStr
);

~AuPStrToCStr(
void);

inline
char*
CStr(
void
);

protected

private

char*
myCStr;

AuPStrToCStr(
void
);

AuPStrToCStr(
const AuPStrToCStr&
);

const AuPStrToCStr&
operator=(
const AuPStrToCStr&
);

||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

char* myCStr;

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

AuPStrToCStr

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

AuPStrToCStr(
char* inPStr
);

The argument is the string to convert.

AuPStrToCStr(
void
);

This constructor is not implemented.

AuPStrToCStr(
const AuPStrToCStr&
);

This constructor is not implemented.

~AuPStrToCStr

~AuPStrToCStr(
void
);

Converts the string back to a C-style string.

CStr

inline
signed char*
CStr(
void
);

Accesses the string as a signed 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 AuPStrToCStr&
operator=(
const AuPStrToCStr&
);

This operator is not implemented.


©1999-2004 Monsterworks

Last Modified: Monday, October 2, 2000