[root] / trunk / core / base / src / TMacro.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TMacro.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 10:02:30 2013 UTC (2 years ago) by rdm
File length: 13525 byte(s)
Diff to previous 46259
after first execution, check if function defined in macro is available in
Cling and execute it from memory.

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: 12896 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: 12508 byte(s)
Diff to previous 35503
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 35503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 06:34:34 2010 UTC (4 years, 4 months ago) by brun
File length: 12463 byte(s)
Diff to previous 35475
Fix calls to strlcpy

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 12455 byte(s)
Diff to previous 35462
Replace calls to strncpy by strlcpy

Revision 35462 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 14:04:01 2010 UTC (4 years, 4 months ago) by brun
File length: 12455 byte(s)
Diff to previous 35448
Fix calls to strncpy

Revision 35448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 12:10:55 2010 UTC (4 years, 4 months ago) by brun
File length: 12453 byte(s)
Diff to previous 34286
Replace calls to strcpy, sprintf by strncpy, snprintf

Revision 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 12448 byte(s)
Diff to previous 26606
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 26606 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 2 20:36:09 2008 UTC (6 years, 1 month ago) by pcanal
File length: 12439 byte(s)
Diff to previous 22961
Following Igor Smirnov analysis fix several memory leaks, add checks for null pointer dereference, fix or add copy constructor and assignment operator when applicable, make the copy constructor and assignment operator private when the objects are not intended to be copiable.

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: 12414 byte(s)
Diff to previous 21231
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 21231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:22:14 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/base/src/TMacro.cxx
File length: 12414 byte(s)
Diff to previous 20877
change all occurances where %x is used to format a pointer to %lx.

Revision 20877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:17:07 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/src/TMacro.cxx
File length: 12417 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TMacro.cxx
File length: 12417 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TMacro.cxx
File length: 12466 byte(s)
Diff to previous 18991
remove :$ from tag line

Revision 18991 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 10 07:05:48 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/base/src/TMacro.cxx
File length: 12476 byte(s)
Diff to previous 17383
Protect TMacro::ReadFile when reading binary files or files with lines with more than 10000 characters.

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/src/TMacro.cxx
File length: 12447 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/src/TMacro.cxx
File length: 12271 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/src/TMacro.cxx
File length: 12035 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 15545 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 26 09:29:13 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/base/src/TMacro.cxx
File length: 12027 byte(s)
Diff to previous 15389
From Federico:
Changes to support gcc option -weffc++

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/src/TMacro.cxx
File length: 11560 byte(s)
Diff to previous 13258
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 13258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 20:11:59 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/base/src/TMacro.cxx
File length: 10428 byte(s)
Diff to previous 12875
White spaces and comments update

Revision 12875 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 29 15:44:09 2005 UTC (9 years, 3 months ago) by rdm
Original Path: trunk/base/src/TMacro.cxx
File length: 10430 byte(s)
Diff to previous 12722
remove some static char array.

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/src/TMacro.cxx
File length: 10464 byte(s)
Diff to previous 12494
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 12494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 16 17:25:54 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/base/src/TMacro.cxx
File length: 9152 byte(s)
Diff to previous 12492
Initialize the string of parameters. This is required even
when processing unnamed macros.

Revision 12492 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 16 15:58:15 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/base/src/TMacro.cxx
File length: 9092 byte(s)
Diff to previous 12486
Add new member
  Bool_t  fExecutingMacro;
with the corresponding getter and setter functions.

This flag is set in TMacro::Exec and tested in TROOT::Reset.

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/src/TMacro.cxx
File length: 8534 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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9