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

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

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

`#include <ScopedTranscoder.h>`

List of all members.

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

## Detailed Description

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

{ XMLScopedTranscoder node( "node" ); ... do stuff ... For example: element->findNodes( node ); // node automatically freed once the function leaves scope. }

Definition at line 85 of file ScopedTranscoder.h.

## Constructor & Destructor Documentation

Mers::Utils::Io::Xml::XMLScopedTranscoder::XMLScopedTranscoder | ( | const char * | message | ) | `[inline]`

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

Definition at line 92 of file ScopedTranscoder.h.

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

Destroys this object.

Definition at line 99 of file ScopedTranscoder.h.

References m_message.

## Member Function Documentation

Mers::Utils::Io::Xml::XMLScopedTranscoder::operator const XMLCh * | ( |  | ) | const`[inline]`

This object can be used as a const char *.

Definition at line 106 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