Log of /trunk/core/base/inc/TMacro.h
Parent Directory
Revision
46259 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 1 13:23:08 2012 UTC (2 years, 3 months ago) by
rdm
File length: 2506 byte(s)
Diff to
previous 44507
use a temporary file name to create the macro before executing it.
Static name caused problem in case two jobs would run in the same directory.
Fixes issue 96604.
Revision
44507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by
axel
File length: 2462 byte(s)
Diff to
previous 22961
Remove
using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.
Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.
Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.
Revision
22961 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by
rdm
File length: 2457 byte(s)
Diff to
previous 20877
move the directories:
base clib cont meta metautils newdelete pcre rint thread unix utils
winnt zip
under the new core meta directory.
Revision
17383 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 17 17:20:42 2007 UTC (8 years ago) by
brun
Original Path:
trunk/base/inc/TMacro.h
File length: 2513 byte(s)
Diff to
previous 17372
From Axel:
I've implemented TMacro::Exec taking an Int_t* error, just as the
several ProcessLine()s do. I've also cleaned the #includes, shortened a
few expressions, fixed a bug with the filename extraction, and made sure
that the fParams member gets copied for the copy c'tor and the
assignment op.
Now proof doesn't build anymore; the patch is included as well.
Revision
17372 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 17 11:55:01 2007 UTC (8 years ago) by
brun
Original Path:
trunk/base/inc/TMacro.h
File length: 2563 byte(s)
Diff to
previous 15672
From Axel:
This patch forwards the return value for TROOT::ProcessLine*(),
implements it as a return value to TMacro::Exec(), and fixes the
constructor for TMacro(filename). The old algorithm failed e.g. for
./whatever.C ("whatever.C" would have been the file name). Make doc a
bit more explicit.
Revision
15672 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by
brun
Original Path:
trunk/base/inc/TMacro.h
File length: 2563 byte(s)
Diff to
previous 15545
from Axel:
Change the signature of SavePrimitive from
void SavePrimitive(ofstream &out, Option_t *option);
to
void SavePrimitive(ostream &out, Option_t *option = "");
With this change one can do, eg
myhist.SavePrimitive(std::cout);
WARNING: do rm -f tree/src/*.o
Revision
15389 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 9 11:58:22 2006 UTC (8 years, 7 months ago) by
brun
Original Path:
trunk/base/inc/TMacro.h
File length: 2521 byte(s)
Diff to
previous 12722
Implement a more sophisticated TMacro::Browse
// When clicking in the browser, the following action is performed
// on this macro, depending the content of the variable TMacro.Browse.
// TMacro.Browse can be set in the system.rootrc or .rootrc file like
// TMacro.Browse : Action
// or set via gEnv->SetValue, eg
// gEnv->SetValue("TMacro.Browse","Print");
// By default TMacro.Browse=""
// -if TMacro.Browse ="" the macro is executed
// -if TMacro.Browse ="Print" the macro is printed in stdout
// -if TMacro.Browse is of the form "mymacro.C"
// the macro void mymacro.C(TMacro *m) is called where m=this macro
// An example of macro.C saving the macro into a file and viewing it
// with emacs is shown below:
// void mymacro(TMacro *m) {
// m->SaveSource("xx.log");
// gSystem->Exec("emacs xx.log&");
// }
A new option is planned in the very near future: possibility to see
the macro in the new ROOT editor currently being implemented by Bertrand.
Revision
12722 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 16 08:48:39 2005 UTC (9 years, 4 months ago) by
rdm
Original Path:
trunk/base/inc/TMacro.h
File length: 2512 byte(s)
Diff to
previous 12492
From Gerri:
Big patch supporting query queueing on the PROOF master, interogation and
interaction with the queue. Retrieval, finalization and archival of query
results and multiple PROOF sessions. Some other fixes:
- TMacro.h, .cxx
add method Checksum to get the MD5 of the current context
(needed for optimized selector reinitialization)
- Changes needed to create and fill the list of data sets (TROOT,
TDSet, TChain, TChainProof)
- A new method TSelector::IsStandardDraw() to check if a selector
is for standard draw actions
- TEventIter: fix for the missing last update (see above)
- Few protections in TPacketizers destructors
- Fix for code conventions in TPerfStats (the other will follow)
- Occasional missing last update of the progress bar (systematically
reproduced with SetParallel(1)): all this part is quite involved
and I have found a solution which does not harm but perhaps is not
the most elegant.
- SetParallel(0): the progress bar was not working at all in such a
case, since no packetizer is involved. Still it is useful to see
that things are not stuck, so I have added some progress messages
there too. The problem is that I have not found a way to get the total
number of entries from a data set without doing all the machinery
done in the packetizer.
Revision
12486 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Tue Aug 16 12:57:57 2005 UTC (9 years, 5 months ago) by
brun
Original Path:
trunk/base/inc/TMacro.h
File length: 2349 byte(s)
New class TMacro:
// TMacro //
// //
// class supporting a collection of lines with C++ code. //
// A TMacro can be executed, saved to a ROOT file, edited, etc //
// //
// A macro can be built line by line by calling the AddLine function. //
// or it can be created directly from a file via the special constructor//
// when the first argument is a file name. //
// //
// A macro can be executed via the Exec function. //
// Arguments can be specified when calling Exec. //
// //
// A macro can be drawn in a pad. When the pad is updated, the macro is //
// automatically executed. //
// //
// The code in the macro can be saved via the SaveSource function. //
// If the macro is in the list of primitives of a pad/canvas, the macro //
// will be saved in the script generated by TCanvas::SaveSource. //
// //
// A macro can be written to a ROOT file via TObject::Write. //
// //
// Examples: //
// TMacro m("Peaks.C"); //macro m with name "Peaks" is created //
// //from file Peaks.C //
// m.Exec(); //macro executed with default arguments //
// m.Exec("4"); //macro executed with argument //
// m.SaveSource("newPeaks.C"); //
// TFile f("mymacros.root","recreate"); //
// m.Write(); //macro saved to file with name "Peaks" //
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.