#include <fsStrUt.h>
Collaboration diagram for fs::ut::str::StrHldr_t:
The class especially serves as a lightweight string converter / holder. It is useful for example when an API which requires a different string format is called, so the converted string can be temporarily stored on the stack and automatically destroyed at the end of the scope.
Definition at line 40 of file fsStrUt.h.
Public Member Functions | |
StrHldr_t (const char *pszStr) | |
Stores the given string. | |
StrHldr_t (const wchar_t *pwszWStr) | |
Converts from the given wide-character string and stores the result. | |
~StrHldr_t () | |
const char * | GetStr () const |
Returns the stored string (can be 0). | |
Private Member Functions | |
StrHldr_t () | |
No def ctor. | |
StrHldr_t (const StrHldr_t &) | |
No copy. | |
StrHldr_t & | operator= (const StrHldr_t &) |
No assignment. | |
Private Attributes | |
char * | m_pszStr |
StrHldr_t::StrHldr_t | ( | const char * | pszStr | ) | [explicit] |
Stores the given string.
Definition at line 96 of file fsStrUt.cpp.
References FS_VERIFY_RETURN, and m_pszStr.
StrHldr_t::StrHldr_t | ( | const wchar_t * | pwszWStr | ) | [explicit] |
Converts from the given wide-character string and stores the result.
Definition at line 106 of file fsStrUt.cpp.
References FS_VERIFY_RETURN, m_pszStr, and fs::ut::str::WStr2Str().
Here is the call graph for this function:
StrHldr_t::~StrHldr_t | ( | ) |
fs::ut::str::StrHldr_t::StrHldr_t | ( | ) | [private] |
No def ctor.
fs::ut::str::StrHldr_t::StrHldr_t | ( | const StrHldr_t & | ) | [private] |
No copy.
const char * StrHldr_t::GetStr | ( | ) | const |
Returns the stored string (can be 0).
Definition at line 121 of file fsStrUt.cpp.
References m_pszStr.
char* fs::ut::str::StrHldr_t::m_pszStr [private] |