Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

StringManager Class Reference

#include <OpenMS/FORMAT/HANDLERS/XMLHandler.h>

List of all members.


Detailed Description

Helper class for XML parsing that handles the memory management for conversions of Xerces strings.

Public Member Functions

 StringManager ()
 Constructor.
 ~StringManager ()
 Destructor. Destroys the strings in the various lists.
void clear ()
 Frees memory of all owned strings.
XMLCh * convert (const char *str) const
 Transcode the supplied C string to XMLCh* and take ownership of the XMLCh*.
XMLCh * convert (const std::string &str) const
 Transcode the supplied C++ string to XMLCh* and take ownership of the XMLCh*.
XMLCh * convert (const String &str) const
 Transcode the supplied OpenMS string to XMLCh* and take ownership of the XMLCh*.
char * convert (const XMLCh *str) const
 Transcode the supplied XMLCh* to a C string and take ownership of the C string.

Private Attributes

std::vector< XMLCh * > xml_strings_
std::vector< char * > c_strings_

Constructor & Destructor Documentation

StringManager (  ) 

Constructor.

~StringManager (  ) 

Destructor. Destroys the strings in the various lists.


Member Function Documentation

void clear (  ) 

Frees memory of all owned strings.

XMLCh* convert ( const char *  str  )  const

Transcode the supplied C string to XMLCh* and take ownership of the XMLCh*.

XMLCh* convert ( const std::string &  str  )  const

Transcode the supplied C++ string to XMLCh* and take ownership of the XMLCh*.

XMLCh* convert ( const String str  )  const

Transcode the supplied OpenMS string to XMLCh* and take ownership of the XMLCh*.

char* convert ( const XMLCh *  str  )  const

Transcode the supplied XMLCh* to a C string and take ownership of the C string.


Member Data Documentation

std::vector<XMLCh*> xml_strings_ [mutable, private]

std::vector<char*> c_strings_ [mutable, private]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:49 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1