/[H6]/CommonStorage.cpp
ViewVC logotype

Annotation of /CommonStorage.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (hide annotations) (download)
Wed Aug 30 12:00:21 2006 UTC (17 years, 8 months ago) by torben
File size: 359 byte(s)
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