51 string key =
"BES.Data.RootDirectory" ;
56 string s = key +
" not defined in BES configuration file" ;
61 key = (string)
"BES.FollowSymLinks" ;
65 if( found && ( s_str ==
"yes" || s_str ==
"on" || s_str ==
"true" ) )
91 i = _container_list.find( sym_name ) ;
92 if( i != _container_list.end() )
98 return ret_container ;
118 const string &real_name,
125 string s =
"Unable to add container, type of data must be specified" ;
131 i = _container_list.find( sym_name ) ;
132 if( i != _container_list.end() )
134 string s = (string)
"A container with the name "
136 +
" already exists" ;
146 string new_r_name =
_root_dir +
"/" + real_name ;
152 _container_list[sym_name] = c ;
177 string s =
"Unable to add container, container passed is null" ;
182 string s =
"Unable to add container, type of data must be specified" ;
187 i = _container_list.find( sym_name ) ;
188 if( i != _container_list.end() )
190 string s = (string)
"A container with the name "
192 +
" already exists" ;
195 _container_list[sym_name] = c ;
209 i = _container_list.find( s_name ) ;
210 if( i != _container_list.end() )
213 _container_list.erase( i ) ;
233 while( _container_list.size() != 0 )
237 _container_list.erase( ci ) ;
264 string::size_type root_len =
_root_dir.length() ;
272 if( real.length() > root_len )
274 if( real.compare( 0, root_len,
_root_dir ) == 0 )
276 real = real.substr( root_len, real.length() - root_len ) ;
295 << (
void *)
this <<
")" << endl ;
298 if( _container_list.size() )
301 BESIndent::Indent() ;
303 = _container_list.begin() ;
305 = _container_list.end() ;
306 for( ; i != ie; i++ )