40 {
"$Id: DAS.cc 24886 2011-09-13 22:58:35Z jimg $"
86 append_container(attr,
www2id(name));
104 return _container_name ;
117 if (cn != _container_name) {
125 _container_name = cn;
159 d_container->
erase();
255 FILE *in = fopen(fname.c_str(),
"r");
263 int res = fclose(in);
265 DBG(cerr <<
"DAS::parse - Failed to close file " << (
void *)in << endl ;) ;
283 FILE *in = fdopen(_dup(fd),
"r");
285 FILE *in = fdopen(dup(fd),
"r");
289 throw InternalErr(__FILE__, __LINE__,
"Could not access file.");
294 int res = fclose(in);
296 DBG(cerr <<
"DAS::parse(fd) - Failed to close " << (
void *)in << endl ;) ;
312 throw InternalErr(__FILE__, __LINE__,
"Null input stream.");
320 bool status =
dasparse((
void *) & arg) == 0;
326 if (!status || !arg.
status()) {
349 fprintf(out,
"Attributes {\n") ;
351 d_attrs.
print(out,
" ", dereference);
353 fprintf(out,
"}\n") ;
371 out <<
"Attributes {\n" ;
373 d_attrs.
print(out,
" ", dereference);
389 << (
void *)
this <<
")" << endl ;