Changeset 1164 in Sophya for trunk/SophyaPI/PIext/nobjmgr.cc


Ignore:
Timestamp:
Aug 30, 2000, 1:10:17 PM (25 years ago)
Author:
ercodmgr
Message:

MAJ Makefile - Reza 30/8/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/nobjmgr.cc

    r1105 r1164  
    1717#include "pistdimgapp.h"
    1818
     19#include "dvlist.h"
    1920
    2021// EVOL-PLANCK
     
    8485static Services2NObjMgr* servnobjm=NULL;
    8586
     87static DVList* myVars = NULL;  // Pour stocker les variables
     88
    8689static string* TmpDir;  // Repertoire pour les compilations / link dynamique
    8790
     
    112115  myDirs = new NObjDirList;
    113116  myObjs = new NObjList; 
     117  myVars = new DVList;
    114118  currDir = new string("home");
    115119  string dirn = "home";
     
    144148{
    145149fgOInit--;
    146 if (fgOInit == 0)  delete myObjs;
     150if (fgOInit == 0)  {
     151  string patt = "/*/*";
     152  DelObjects(patt, true);
     153  delete myObjs;
     154  delete myDirs;
     155  delete myVars;
     156}
    147157}
    148158
     
    188198{
    189199return(servnobjm);
     200}
     201
     202/* --Methode-- */
     203bool 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-- */
     211bool NamedObjMgr::HasVar(string const & key)
     212{
     213  return(myVars->HasKey(key));
     214}
     215
     216/* --Methode-- */
     217bool NamedObjMgr::DeleteVar(string const & key)
     218{
     219  return(myVars->DeleteKey(key));
     220}
     221
     222/* --Methode-- */
     223string NamedObjMgr::GetVar(string const & key)
     224{
     225  return(myVars->GetS(key));
     226}
     227
     228/* --Methode-- */
     229DVList& NamedObjMgr::GetVarList()
     230{
     231  return(*myVars);
    190232}
    191233
     
    545587}
    546588
     589
    547590/* --Methode-- */
    548591bool NamedObjMgr::DelObj(string & nom, bool fgd)
Note: See TracChangeset for help on using the changeset viewer.