Lines Matching refs:ofile

78 …d::string> >& input, const std::string& egname, const std::string& divname, std::ofstream& ofile );
124 …IFile ifile; ifile.open(fname); ifile.allowNoEOL(); std::ofstream ofile; ofile.open(outfile); std:… in main() local
136ofile<<"<div style=\"width: 80%; float:left\" id=\"value_details_"<<egname<<"\"> Click on the labe… in main()
137ofile<<"<div style=\"width: 10%; float:left\"><button type=\"button\" id=\""<<egname<<"_button\" o… in main()
139ofile<<"<div style=\"width: 90%; float:left\" id=\"value_details_"<<egname<<"\"> Click on the labe… in main()
141 ofile<<"<div style=\"width: 10%; float:left\">"; in main()
142 ofile<<"<img src=\"https://img.shields.io/badge/"; in main()
143 if(status=="working") ofile<<version<<"-passing-green"; in main()
144 else if(status=="broken") ofile<<version<<"-failed-red"; in main()
145 else if(status=="loads") ofile<<"with-LOAD-yellow"; in main()
146 else if(status=="incomplete") ofile<<version<<"-incomplete-yellow"; in main()
148 ofile<<".svg\" alt=\"tested on "<<version<<"\" /></div>"; in main()
149 ofile.flush(); in main()
152 ofile<<"<div style=\"width: 100%; float:left\" id=\"input_"<<egname<<"\"></div>"<<std::endl; in main()
154 ofile<<"<pre style=\"width: 97%;\" class=\"fragment\"></pre>"<<std::endl; in main()
155 ofile<<"<script type=\"text/javascript\">"<<std::endl; in main()
156 ofile<<"if (window.addEventListener) { // Mozilla, Netscape, Firefox"<<std::endl; in main()
157 ofile<<" window.addEventListener('load', "<<egname<<"Load, false);"<<std::endl; in main()
158 ofile<<"} else if (window.attachEvent) { // IE"<<std::endl; in main()
159 ofile<<" window.attachEvent('onload', "<<egname<<"Load);"<<std::endl; in main()
160 ofile<<"}"<<std::endl; in main()
161 ofile<<"function "<<egname<<"Load(event) {"<<std::endl; in main()
162 ofile<<" swapInput(\""<<egname<<"\");"<<std::endl; in main()
163 ofile<<"}"<<std::endl; in main()
164 ofile<<"</script>"<<std::endl; in main()
165 ofile<<"<div style=\"display:none;\" id=\""<<egname<<"short\">"<<std::endl; in main()
166 printExampleInput( input, egname + "short", egname, ofile ); in main()
167 ofile<<"</div>"<<std::endl; in main()
169 ofile<<"<div style=\"display:none;\" id=\""<<egname<<"long\">"; in main()
171 printExampleInput( long_input, egname + "long", egname, ofile ); in main()
172 ofile<<"</div>"<<std::endl; in main()
173 } else printExampleInput( input, egname, egname, ofile ); in main()
174 ofile.close(); return 0; in main()
216 …::string> >& input, const std::string& egname, const std::string& divname, std::ofstream& ofile ) { in printExampleInput() argument
228 ofile<<"<pre style=\"width: 97%;\" class=\"fragment\">"<<std::endl; in printExampleInput()
230 if( input[ll].empty() ) { ofile<<std::endl; continue; } in printExampleInput()
232 ofile<<"<span style=\"color:blue\">"<<input[ll][0]; in printExampleInput()
233 for(unsigned i=1; i<input[ll].size(); ++i) ofile<<" "<<input[ll][i]; in printExampleInput()
234 ofile<<"</span>"<<std::endl;; in printExampleInput()
240ofile<<"<b name=\""<<egname<<lab<<"\" onclick=\'showPath(\""<<divname<<"\",\""<<egname<<lab<<"\")\… in printExampleInput()
249 ofile<<"<a href=\"https://www.plumed.org/doc-"<<version<<"/user-doc/html/"; in printExampleInput()
254 for(auto c : first ) { if( isdigit(c) ) ofile<<c; else ofile<<"_"<<c; } in printExampleInput()
255 ofile<<"_"; action=action.substr(und+1); in printExampleInput()
257 for(auto c : action ) { if( isdigit(c) ) ofile<<c; else ofile<<"_"<<c; } in printExampleInput()
258 ofile<<".html\" style=\"color:green\">"<<interpreted[0]<<"</a> "; in printExampleInput()
262 if( interpreted[i]=="@newline" && i==1 ) { ofile<<"..."<<std::endl<<" "; continue; } in printExampleInput()
264 if( trailingcomment ) { ofile<<"</span>"; trailingcomment=false; } in printExampleInput()
265 if( interpreted[i+1]=="..." ) ofile<<std::endl; in printExampleInput()
266 else ofile<<std::endl<<" "; in printExampleInput()
270 ofile<<"<span style=\"background-color:yellow\">__FILL__</span>"; in printExampleInput()
273 …if( interpreted[i].find("#")!=std::string::npos ) { trailingcomment=true; ofile<<"<span style=\"co… in printExampleInput()
279ofile<<"<div class=\"tooltip\">"<<keyword<<"<div class=\"right\">"<<keys.getTooltip(keyword)<<"<i>… in printExampleInput()
282 ofile<<"=<span style=\"background-color:yellow\">__FILL__</span>"; in printExampleInput()
285 ofile<<"="<<rest<<" "; myinputline += keyword + "=" + rest + " "; in printExampleInput()
287 std::vector<std::string> args=Tools::getWords(rest,"\t\n ,"); ofile<<"="; in printExampleInput()
294 if( islabel ) ofile<<"<b name=\""<<egname<<thislab<<"\">"<<args[i]<<"</b>"; in printExampleInput()
295 else ofile<<args[i]; in printExampleInput()
296 if( i!=args.size()-1 ) ofile<<","; in printExampleInput()
300 ofile<<" "; in printExampleInput()
303ofile<<"<div class=\"tooltip\">"<<interpreted[i]<<"<div class=\"right\">"<<keys.getTooltip(interpr… in printExampleInput()
304 } else if( interpreted[i]=="..." ) ofile<<"..."; in printExampleInput()
305 } else ofile<<interpreted[i]<<" "; in printExampleInput()
307 if( trailingcomment ) ofile<<"</span>"; in printExampleInput()
310 ofile<<"<span style=\"display:none;\" id=\""<<egname<<lab<<"\">"; in printExampleInput()
311 ofile<<"The "<<interpreted[0]<<" action with label <b>"<<lab<<"</b>"; in printExampleInput()
315 if( av->getNumberOfComponents()==1 ) { ofile<<" calculates a single scalar value"; } in printExampleInput()
317 ofile<<" calculates the following quantities:"<<std::endl; in printExampleInput()
318ofile<<"<table align=\"center\" frame=\"void\" width=\"95%%\" cellpadding=\"5%%\">"<<std::endl; in printExampleInput()
319ofile<<"<tr><td width=\"5%%\"><b> Quantity </b> </td><td><b> Description </b> </td></tr>"<<std::e… in printExampleInput()
325 ofile<<"<tr><td width=\"5%%\">"<<myname<<"</td><td>"; in printExampleInput()
327ofile<<keys.getOutputComponentDescription(tname.substr(und))<<" This particular component measures… in printExampleInput()
328 ofile<<tname.substr(0,und); in printExampleInput()
330ofile<<keys.getOutputComponentDescription(tname.substr(0,hyph))<<" This is the "<<tname.substr(hy… in printExampleInput()
331 } else ofile<<keys.getOutputComponentDescription(tname); in printExampleInput()
332 ofile<<"</td></tr>"; in printExampleInput()
334 ofile<<"</table>"<<std::endl; in printExampleInput()
338 if( avv ) ofile<<" calculates the position of a virtual atom"; in printExampleInput()
339 …else if( interpreted[0]=="GROUP" ) ofile<<" defines a group of atoms so that they can be referred … in printExampleInput()
341 ofile<<"</span>"<<std::endl; in printExampleInput()
343ofile<<"<span style=\"display:none;\" id=\""<<egname<<lab<<"\"> You cannot view the components tha… in printExampleInput()
344 } else ofile<<std::endl; in printExampleInput()
346 ofile.flush(); in printExampleInput()
348 ofile<<"</pre>"<<std::endl; in printExampleInput()