Changeset 1164 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc
- Timestamp:
- Aug 30, 2000, 1:10:17 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nobjmgr.cc
r1105 r1164 17 17 #include "pistdimgapp.h" 18 18 19 #include "dvlist.h" 19 20 20 21 // EVOL-PLANCK … … 84 85 static Services2NObjMgr* servnobjm=NULL; 85 86 87 static DVList* myVars = NULL; // Pour stocker les variables 88 86 89 static string* TmpDir; // Repertoire pour les compilations / link dynamique 87 90 … … 112 115 myDirs = new NObjDirList; 113 116 myObjs = new NObjList; 117 myVars = new DVList; 114 118 currDir = new string("home"); 115 119 string dirn = "home"; … … 144 148 { 145 149 fgOInit--; 146 if (fgOInit == 0) delete myObjs; 150 if (fgOInit == 0) { 151 string patt = "/*/*"; 152 DelObjects(patt, true); 153 delete myObjs; 154 delete myDirs; 155 delete myVars; 156 } 147 157 } 148 158 … … 188 198 { 189 199 return(servnobjm); 200 } 201 202 /* --Methode-- */ 203 bool NamedObjMgr::SetVar(string const & key, string const & val) 204 { 205 bool fg = myVars->HasKey(key); 206 myVars->SetS(key, val); 207 return(fg); 208 } 209 210 /* --Methode-- */ 211 bool NamedObjMgr::HasVar(string const & key) 212 { 213 return(myVars->HasKey(key)); 214 } 215 216 /* --Methode-- */ 217 bool NamedObjMgr::DeleteVar(string const & key) 218 { 219 return(myVars->DeleteKey(key)); 220 } 221 222 /* --Methode-- */ 223 string NamedObjMgr::GetVar(string const & key) 224 { 225 return(myVars->GetS(key)); 226 } 227 228 /* --Methode-- */ 229 DVList& NamedObjMgr::GetVarList() 230 { 231 return(*myVars); 190 232 } 191 233 … … 545 587 } 546 588 589 547 590 /* --Methode-- */ 548 591 bool NamedObjMgr::DelObj(string & nom, bool fgd)
Note:
See TracChangeset
for help on using the changeset viewer.