makefile::StringAdapter Class Reference

Adapts a string of wide or narrow characters to a narrow character std::string. More...

#include <StringAdapter.h>

List of all members.

Public Member Functions

 StringAdapter (std::wstring &ws)
 StringAdapter (const std::string &s)
 StringAdapter (const wchar_t *ws)
 StringAdapter (const char *s)
virtual ~StringAdapter ()

Private Member Functions

void use_narrow (const wchar_t *ws)


Detailed Description

Adapts a string of wide or narrow characters to a narrow character std::string.

It uses the narrow method of standard iostreams, it doesn't do any code conversion. It's purpose is to allow exception texts to contain wide strings, regardless of USE_WCHAR.

Definition at line 40 of file StringAdapter.h.


Constructor & Destructor Documentation

makefile::StringAdapter::StringAdapter std::wstring &  ws  )  [inline]
 

Definition at line 52 of file StringAdapter.h.

makefile::StringAdapter::StringAdapter const std::string s  )  [inline]
 

Definition at line 56 of file StringAdapter.h.

References makefile::string.

makefile::StringAdapter::StringAdapter const wchar_t *  ws  )  [inline]
 

Definition at line 59 of file StringAdapter.h.

makefile::StringAdapter::StringAdapter const char *  s  )  [inline]
 

Definition at line 63 of file StringAdapter.h.

References makefile::string.

virtual makefile::StringAdapter::~StringAdapter  )  [inline, virtual]
 

Definition at line 66 of file StringAdapter.h.


Member Function Documentation

void makefile::StringAdapter::use_narrow const wchar_t *  ws  )  [inline, private]
 

Definition at line 42 of file StringAdapter.h.


The documentation for this class was generated from the following file:
Generated on Wed Oct 1 01:25:56 2014 for Hugintrunk by  doxygen 1.3.9.1