Changeset 1004 for GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
- Timestamp:
- 06/07/06 18:38:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r1002 r1004 26 26 27 27 28 Environment *environment = NULL; 28 //Environment *environment = NULL; 29 Environment *Environment::sEnvironment = NULL; 30 31 32 Environment *Environment::GetSingleton() 33 { 34 if (!sEnvironment) 35 { 36 sEnvironment = new Environment(); 37 } 38 39 return sEnvironment; 40 } 41 42 void Environment::DelSingleton() 43 { 44 DEL_PTR(sEnvironment); 45 } 46 29 47 30 48 Environment::~Environment() … … 2219 2237 if (!GetParam(' ', 0, filename)) { 2220 2238 // user didn't specified environment file explicitly, so 2221 strcpy(filename, "default. env");2239 strcpy(filename, "default.Environment::GetSingleton()"); 2222 2240 } 2223 2241
Note: See TracChangeset
for help on using the changeset viewer.