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 
6 {
7 private:
10  static StringConverter *instance;
11  static void Destroy() {
12  delete instance;
13  }
14 public:
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 
char * W2M(wchar_t *input)
static StringConverter * getInstance()
wchar_t * M2W(char *input)