- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Mers::Utils::Io::Xml::CScopedTranscoder Class Reference

`#include <ScopedTranscoder.h>`

List of all members.

## Public Member Functions
| CScopedTranscoder (const XMLCh *message)
| ~CScopedTranscoder ()
| operator const char * () const
## Protected Attributes
char * | m_message
| Our transcoded message.

## Detailed Description

This class will transcode an XMLChar message for printing and then free it once it goes out of scope. An object of this type can be used anywhere a const char * can be used. This class is intended to be used as:

{ CScopedTranscoder tag( node->getTag() ); ... do stuff ... For example: printf( "Tag is %s\n", tag ); // tag automatically freed once the function leaves scope. }

Definition at line 34 of file ScopedTranscoder.h.

## Constructor & Destructor Documentation

Mers::Utils::Io::Xml::CScopedTranscoder::CScopedTranscoder | ( | const XMLCh * | message | ) | `[inline]`

Takes an XMLCh message and convertes it into a char * message, suitable for use with logging functionality.

Definition at line 41 of file ScopedTranscoder.h.

Mers::Utils::Io::Xml::CScopedTranscoder::~CScopedTranscoder | ( |  | ) | `[inline]`

Destroys this object.

Definition at line 48 of file ScopedTranscoder.h.

References m_message.

## Member Function Documentation

Mers::Utils::Io::Xml::CScopedTranscoder::operator const char * | ( |  | ) | const`[inline]`

This object can be used as a const char *.

Definition at line 55 of file ScopedTranscoder.h.

References m_message.

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

- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/ScopedTranscoder.h