Ptex::String Class Reference

Memory-managed string. More...

`#include <Ptexture.h>`

## Public Member Functions

| String ()
| String (const String &str)
| ~String ()
String & | operator= (const char *str)
String & | operator= (const String &str)
String & | operator= (const std::string &str)
const char * | c_str () const
bool | empty () const

## Private Attributes

char * | _str

## Related Symbols

(Note that these are not member symbols.)
std::ostream & | operator<< (std::ostream &stream, const Ptex::String &str)
| std::stream output operator.

## Detailed Description

Memory-managed string.

Used for returning error messages from API functions. On most platforms, this is a typedef to std::string. For Windows, this is a custom class that implements a subset of std::string. (Note: std::string cannot be passed through a Windows DLL interface).

Definition at line 295 of file Ptexture.h.

## Constructor & Destructor Documentation

## String() [1/2]

Ptex::String::String | ( |  | ) |

inline

Definition at line 298 of file Ptexture.h.

## String() [2/2]

Ptex::String::String | ( | const String & | str | ) |

inline

Definition at line 299 of file Ptexture.h.

## ~String()

String::~String | ( |  | ) |

Definition at line 679 of file PtexUtils.cpp.

## Member Function Documentation

## c_str()

const char * Ptex::String::c_str | ( |  | ) | const

inline

Definition at line 304 of file Ptexture.h.

References _str.

Referenced by PtexWriterBase::release().

## empty()

bool Ptex::String::empty | ( |  | ) | const

inline

Definition at line 305 of file Ptexture.h.

References _str.

## operator=() [1/3]

String & String::operator= | ( | const char * | str | ) |

Definition at line 685 of file PtexUtils.cpp.

## operator=() [2/3]

String & Ptex::String::operator= | ( | const std::string & | str | ) |

inline

Definition at line 303 of file Ptexture.h.

## operator=() [3/3]

String & Ptex::String::operator= | ( | const String & | str | ) |

inline

Definition at line 302 of file Ptexture.h.

References _str.

## Friends And Related Symbol Documentation

## operator<<()

std::ostream & operator<< | ( | std::ostream & | stream,
|  | const Ptex::String & | str )

related

std::stream output operator.

## Member Data Documentation

## _str

char* Ptex::String::_str

private

Definition at line 308 of file Ptexture.h.

Referenced by c_str(), empty(), and operator=().

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

- Ptexture.h
- PtexUtils.cpp