/[H6]/CommonStorage.cpp
ViewVC logotype

Annotation of /CommonStorage.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (hide annotations) (download)
Wed Aug 30 21:57:57 2006 UTC (17 years, 8 months ago) by torben
File size: 418 byte(s)
Finished (???) administration part - plus made a dummy offline version of the DatabaseLayer class.
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 torben 9 CommonStorage::~CommonStorage(void)
15     {
16     delete dbl;
17     }
18 torben 6
19 torben 9
20 torben 6 CommonStorage* CommonStorage::Instance()
21     {
22     static CommonStorage common;
23     return &common;
24     /*
25     if (pinstance == 0)
26     {
27     pinstance = new CommonStorage;
28     }
29     return pinstance;
30     */
31     }
32    

  ViewVC Help
Powered by ViewVC 1.1.20