44 using namespace libdap ;
109 const string &real_name,
116 BESDEBUG(
"bes",
"BESContainerStorageCatalog::add_container: "
117 <<
"adding container with name \"" << sym_name
118 <<
"\", real name \"" << real_name
119 <<
"\", type \"" << type <<
"\"" << endl ) ;
120 string::size_type stopat = real_name.length() - 1 ;
121 while( real_name[stopat] ==
'/' )
125 string new_name = real_name.substr( 0, stopat + 1 ) ;
128 string::size_type slash = new_name.rfind(
"/" ) ;
129 if( slash != string::npos )
131 basename = new_name.substr( slash+1, new_name.length() - slash ) ;
135 basename = new_name ;
139 if( !_utils->
include( basename ) )
141 string s =
"Attempting to create a container with real name "
142 + real_name +
" which is on the exclude list" ;
148 string new_type = type ;
154 for( ; i != ie && !done; i++ )
160 if( reg_expr.match( real_name.c_str(), real_name.length() ) ==
161 static_cast<int>(real_name.length()) )
163 new_type = match.
type ;
169 string serr = (string)
"Unable to match data type, "
170 +
"malformed Catalog TypeMatch parameter "
171 +
"in bes configuration file around "
172 + match.
reg +
": " + e.get_error_message() ;
191 list<string> &provides )
193 string node_type =
"" ;
197 for( ; i != ie && !done; i++ )
203 if( reg_expr.match( inQuestion.c_str(), inQuestion.length() ) ==
204 static_cast<int>(inQuestion.length()) )
206 node_type = match.
type ;
212 string serr = (string)
"Unable to determine data products (is data), "
213 +
"malformed Catalog TypeMatch parameter "
214 +
"in bes configuration file around "
215 + match.
reg +
": " + e.get_error_message() ;
236 << (
void *)
this <<
")" << endl ;
241 _utils->
dump( strm ) ;