54 BESContainerStorageList::persistence_list *pl = _first ;
57 if( pl->_persistence_obj )
59 delete pl->_persistence_obj ;
61 BESContainerStorageList::persistence_list *next = pl->_next ;
85 _first =
new BESContainerStorageList::persistence_list ;
86 _first->_persistence_obj = cp ;
87 _first->_reference = 1 ;
93 BESContainerStorageList::persistence_list *pl = _first ;
95 while( done ==
false )
97 if( pl->_persistence_obj->get_name() != cp->
get_name() )
105 pl->_next =
new BESContainerStorageList::persistence_list ;
106 pl->_next->_reference = 1 ;
107 pl->_next->_persistence_obj = cp ;
108 pl->_next->_next = 0 ;
137 BESContainerStorageList::persistence_list *pl = _first ;
140 while( done ==
false )
144 if( pl->_persistence_obj &&
145 pl->_persistence_obj->get_name() == persist_name )
180 BESContainerStorageList::persistence_list *pl = _first ;
181 BESContainerStorageList::persistence_list *last = 0 ;
184 while( done ==
false )
188 if( pl->_persistence_obj &&
189 pl->_persistence_obj->get_name() == persist_name )
194 if( !pl->_reference )
198 _first = _first->_next ;
203 throw BESInternalError(
"ContainerStorageList last is null", __FILE__, __LINE__);
204 last->_next = pl->_next ;
206 delete pl->_persistence_obj ;
238 BESContainerStorageList::persistence_list *pl = _first ;
240 while( done ==
false )
244 if( persist_name == pl->_persistence_obj->get_name() )
246 ret = pl->_persistence_obj ;
263 BESContainerStorageList::isnice()
266 string key =
"BES.Container.Persistence" ;
270 if( isnice ==
"Nice" || isnice ==
"nice" || isnice ==
"NICE" )
304 BESContainerStorageList::persistence_list *pl = _first ;
306 while( done ==
false )
310 ret_container = pl->_persistence_obj->look_for( sym_name ) ;
330 << sym_name << endl ;
334 string s = (string)
"Could not find the symbolic name "
340 return ret_container ;
358 BESContainerStorageList::persistence_list *pl = _first ;
361 map<string,string> props ;
362 props[
"name"] = pl->_persistence_obj->get_name() ;
364 pl->_persistence_obj->show_containers( info ) ;
381 << (
void *)
this <<
")" << endl ;
383 BESContainerStorageList::persistence_list *pl = _first ;
387 BESIndent::Indent() ;
390 pl->_persistence_obj->dump( strm ) ;