void ReadKkit::dumpPlots( const string& filename ) { // ofstream fout ( filename.c_str() ); vector< ObjId > plots; string plotpath = basePath_ + "/graphs/##[TYPE=Table]," + basePath_ + "/moregraphs/##[TYPE=Table]"; wildcardFind( plotpath, plots ); for ( vector< ObjId >::iterator i = plots.begin(); i != plots.end(); ++i ) SetGet2< string, string >::set( *i, "xplot", filename, i->element()->getName() ); }
bool Shell::innerUseClock( string path, string field, unsigned int tick, unsigned int msgIndex ) { vector< ObjId > list; wildcardFind( path, list ); // By default scans only Elements. if ( list.size() == 0 ) { cout << "Warning: Shell::innerUseClock: no Elements found on path " << path << endl; return 0; } // string tickField = "proc"; // Hack to get around a common error. if ( field.substr( 0, 4 ) == "proc" || field.substr( 0, 4 ) == "Proc" ) field = "proc"; if ( field.substr( 0, 4 ) == "init" || field.substr( 0, 4 ) == "Init" ) field = "init"; addClockMsgs( list, field, tick, msgIndex ); for ( vector< ObjId >::iterator i = list.begin(); i != list.end(); ++i ) i->id.element()->innerSetTick( tick ); return 1; }