Parent Directory | Revision Log
Addet CommonStorage.[h|cpp] (singleton)
1 | torben | 6 | #include "StdAfx.h" |
2 | #include ".\commonstorage.h" | ||
3 | |||
4 | |||
5 | //CommonStorage* CommonStorage::pinstance = 0; | ||
6 | |||
7 | |||
8 | |||
9 | CommonStorage::CommonStorage(void) | ||
10 | { | ||
11 | dbl = 0; | ||
12 | } | ||
13 | |||
14 | |||
15 | CommonStorage* CommonStorage::Instance() | ||
16 | { | ||
17 | static CommonStorage common; | ||
18 | return &common; | ||
19 | /* | ||
20 | if (pinstance == 0) | ||
21 | { | ||
22 | pinstance = new CommonStorage; | ||
23 | } | ||
24 | return pinstance; | ||
25 | */ | ||
26 | } | ||
27 |
ViewVC Help | |
Powered by ViewVC 1.1.20 |