53 string key =
"BES.Data.RootDirectory" ;
58 string s = key +
" not defined in BES configuration file" ;
63 key = (string)
"BES.FollowSymLinks" ;
67 if( found && ( s_str ==
"yes" || s_str ==
"on" || s_str ==
"true" ) )
93 i = _container_list.find( sym_name ) ;
94 if( i != _container_list.end() )
100 return ret_container ;
120 const string &real_name,
123 BESDEBUG(
"bes",
"BESContainerStorageCatalog::add_container: "
124 <<
"adding container with name \"" << sym_name
125 <<
"\", real name \"" << real_name
126 <<
"\", type \"" << type <<
"\"" << endl ) ;
132 string s =
"Unable to add container, type of data must be specified" ;
138 i = _container_list.find( sym_name ) ;
139 if( i != _container_list.end() )
141 string s = (string)
"A container with the name "
143 +
" already exists" ;
153 string new_r_name =
_root_dir +
"/" + real_name ;
159 _container_list[sym_name] = c ;
184 string s =
"Unable to add container, container passed is null" ;
189 string s =
"Unable to add container, type of data must be specified" ;
194 i = _container_list.find( sym_name ) ;
195 if( i != _container_list.end() )
197 string s = (string)
"A container with the name "
199 +
" already exists" ;
202 _container_list[sym_name] = c ;
216 i = _container_list.find( s_name ) ;
217 if( i != _container_list.end() )
220 _container_list.erase( i ) ;
240 while( _container_list.size() != 0 )
244 _container_list.erase( ci ) ;
262 list<string> &provides )
294 string::size_type root_len =
_root_dir.length() ;
302 if( real.length() > root_len )
304 if( real.compare( 0, root_len,
_root_dir ) == 0 )
306 real = real.substr( root_len, real.length() - root_len ) ;
325 << (
void *)
this <<
")" << endl ;
328 if( _container_list.size() )
333 = _container_list.begin() ;
335 = _container_list.end() ;
336 for( ; i != ie; i++ )