acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_string_wide_conversion.h
1#pragma once
2
3
4#include "string.h"
5
6
7template < typename STRING_CATCHER >
8class CLASS_DECL_ACME catch_as_wstring :
9 public wstring
10{
11public:
12
13
14 STRING_CATCHER & m_stringCatcher;
15
16
17 catch_as_wstring(STRING_CATCHER & stringCatcher, ::i32 iAllocCount) :
18 m_stringCatcher(stringCatcher)
19 {
20
21 get_buffer(iAllocCount);
22
23 }
24
25
26 ~catch_as_wstring()
27 {
28
29 m_stringCatcher = m_pdata;
30
31 }
32
33
34 inline operator const ::wide_character * () { return this->m_pdata; }
35 inline operator ::wide_character * () { return this->m_pdata; }
36
37
38};
39
40
41