Openholo
v2.1
Open Source Digital Holographic Library
StringConverter.h
Go to the documentation of this file.
1
#pragma once
2
#include <stdlib.h>
3
4
5
class
StringConverter
6
{
7
private
:
8
StringConverter
();
9
~
StringConverter
();
10
static
StringConverter
*instance;
11
static
void
Destroy() {
12
delete
instance;
13
}
14
public
:
15
static
StringConverter
*
getInstance
() {
16
if
(instance ==
nullptr
) {
17
instance =
new
StringConverter
();
18
atexit(Destroy);
19
}
20
return
instance;
21
}
22
23
wchar_t
*
M2W
(
char
*input);
24
char
*
W2M
(
wchar_t
*input);
25
26
};
27
StringConverter::W2M
char * W2M(wchar_t *input)
StringConverter::getInstance
static StringConverter * getInstance()
Definition:
StringConverter.h:15
StringConverter
Definition:
StringConverter.h:5
StringConverter::M2W
wchar_t * M2W(char *input)
Openholo
Reference
include
StringConverter.h
Generated by
1.8.14