[root] / trunk / core / base / inc / TApplication.h Repository:
ViewVC logotype

Log of /trunk/core/base/inc/TApplication.h

Parent Directory Parent Directory


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

Revision 47782 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 2 21:17:26 2012 UTC (2 years, 1 month ago) by pcanal
File length: 7603 byte(s)
Diff to previous 44507
Add support for the command line option : -e expression: request execution of the given C++ expression.

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: 7429 byte(s)
Diff to previous 39402
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 39402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 26 12:56:31 2011 UTC (3 years, 7 months ago) by axel
File length: 7424 byte(s)
Diff to previous 35721
Replace legacy clib/getline and editline by a new library, textinput,
located at core/textinput/src/textinput. That new library is written
in C++, standalone (no external dependencies), cross platform
including Windows, and contains only what we need - unlike
e.g. editline. It implements almost all bash-like editing commands,
color highlighting, history etc. It allows for multiple input objects
and multiple display objects, e.g. GUI and terminal in parallel. It
can be used as a stand-alone library, too, and will become part of
cling - which explains the different license and file names (.cpp).

core/textinputs/src/Getline* contains the adapters to ROOT; the
previous core/editline/enhance.cxx is transformed to
Getline_color.cxx. This new adapter interfaces with TTabCom directly,
without going via an extern "C" function pointer, to allow for an
ostream being passed that will contain all completion options, one per
line. TApplication now defines a virtual function to be called for tab
completion; TRint implements it using TTabCom.

One major change is that the user input string is accessible as const
char* instead of being a char* - the buffer length is unknown
anyway. This caused changes in callers of Getline(); the history and
the getline function types needed to change for CINT.

--enable-editline has been deprecated and is inoperable.

Revision 35721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 24 19:47:24 2010 UTC (4 years, 4 months ago) by rdm
File length: 7350 byte(s)
Diff to previous 34848
Add new TApplication option "-memstat" to run with TMemStat enabled.

Revision 34848 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 18 23:09:47 2010 UTC (4 years, 5 months ago) by rdm
File length: 7282 byte(s)
Diff to previous 31670
In TApplication add:
- new method ExitOnException() which allows to set the behaviour of
  TApplication in case of an exception (sigsegv, sigbus, sigill, sigfpe).
  The default is to trap the signal and continue with the event loop,
  using this method one can specify to exit with the signal number to the
  shell, or to abort() which in addition generates a core dump.
- new command line argument -x which forces ROOT to exit on an exception.

Revision 31670 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 15:22:08 2009 UTC (5 years, 1 month ago) by rdm
File length: 7057 byte(s)
Diff to previous 27160
From Coverity:
- remove one unsed class member
- check return type

Revision 27160 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 15 16:24:27 2009 UTC (6 years ago) by pcanal
File length: 7136 byte(s)
Diff to previous 26263
From Axel:
Enable .Lk, .xk for ROOT; see r27158.

Revision 26263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 18 12:00:21 2008 UTC (6 years, 2 months ago) by rdm
File length: 7092 byte(s)
Diff to previous 25382
allow an explicit TApplication to override a default TApplication created
via CreateApplication(). This fixes issue 42687.

Revision 25382 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 10 15:52:10 2008 UTC (6 years, 4 months ago) by rdm
File length: 7012 byte(s)
Diff to previous 24111
From Bertrand:
add LineProcessed() signal needed for event recorder.

Revision 24111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 3 09:04:33 2008 UTC (6 years, 7 months ago) by rdm
File length: 6935 byte(s)
Diff to previous 22961
add protection in Argv(int idx) for idx being larger than argc-1.

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

Revision 21265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 7 11:17:44 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 6971 byte(s)
Diff to previous 20877
Following changes:
- use TSystem::NotifyApplicationCreated()
- fix problem with TApplication changing directory during argument parsing.
  Directory is changed only in TRint when it processes the directory argument.
- Add warning if argument file.root does not exists, before not existing
  file was ignored. 
- Improve documentation of TApplication::GetOptions().

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/inc/TApplication.h
File length: 6809 byte(s)
Diff to previous 20680
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 20680 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 6 15:28:09 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 6809 byte(s)
Diff to previous 19826
From Gerri and me:
Add TApplication::HandleException() method, which gets called by
TSystem::DispatchSignals() in case of an exception (sigbus, sigsegv, sigill
or sigfpe). In derived TApplication's one might now want to not throw
or do something else to reset the environment.

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/inc/TApplication.h
File length: 6762 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/inc/TApplication.h
File length: 6814 byte(s)
Diff to previous 19347
remove :$ from tag line

Revision 19347 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 16 10:09:19 2007 UTC (7 years, 6 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 6824 byte(s)
Diff to previous 19343
Add new static method ExecuteFile() which allows macros to be executed
before gApplication is set. The existing ProcessFile() now calls this
method.

Revision 19343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 16 07:54:10 2007 UTC (7 years, 6 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 6757 byte(s)
Diff to previous 19068
protect IsCmdThread() from fAppImp being 0.

Revision 19068 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 19 12:55:18 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6738 byte(s)
Diff to previous 18803
From Bertrand:
New class TRemoteObject to enable browsing of remote system files or ROOT files.

Revision 18803 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 16 11:14:35 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6636 byte(s)
Diff to previous 18770
From Gerri:
  TApplication.h
   - Define BIT(15) as kProcessRemotely to control remote execution.
     The definition is public so that it can be set by any application that
     wants something to be processed on the current remote session, e.g.

            gApplication->SetBit(TApplication::kProcessRemotely);
            gROOT->ProcessLine(...).

     The new bit replaces both bit kTerminalInput and the boolean fProcessingLine.

 TApplication.cxx, TRint.cxx, TApplicationRemote.cxx
   - Cope with the change in TApplication.h

Revision 18770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 14 13:26:46 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6866 byte(s)
Diff to previous 18726
From Gerri:
   - In remote mode, redirect remotely only process-line requests entered via command line

Revision 18726 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 10 17:08:28 2007 UTC (7 years, 8 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 6724 byte(s)
Diff to previous 18723
remove dependency of libCore on libRint.

Revision 18723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 10 16:02:15 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6691 byte(s)
Diff to previous 18415
From Gerri:
    - mods to existing files to support remote execution.

Revision 18415 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 28 14:29:12 2007 UTC (7 years, 9 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5845 byte(s)
Diff to previous 18140
add static method NeedGrahicsLibs(). This method should be called from static
library initializers of libraries that need the low level graphics libs
(this is currently called from libGpad and libGui). This is more generic
than looking for the Gpad and Gui names in TSystem::Load() and also works
if these libs are indirectly loaded like via an ACLiC generated library.
Also explicitly initialize TGX11TTF if this library was indirectly loaded
as part of an ACLiC library (we call via ProcessLine() the new static
TGX11TTF::Activate() method).

Revision 18140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 2 14:05:46 2007 UTC (7 years, 10 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5720 byte(s)
Diff to previous 18136
From Bertrand:
move TColor initialization from TApplication to TColor and call the
initialization at the appropriate places. Fixes a number of issues with
colors not being correctly set.

Revision 18136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 2 10:24:14 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5756 byte(s)
Diff to previous 18066
From Bertrand:
Fix graphics libraries loading/initialization.

Revision 18066 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 20:58:16 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6002 byte(s)
Diff to previous 18058
From Bertrand:
Fix a compilation error under Solaris.

Revision 18058 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 14:10:00 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 6024 byte(s)
Diff to previous 18042
From Bertrand:
automatic graphics initialization in gui classes.
I also replaced all gClient->GetRoot() by 0 in tutorials.

Revision 18042 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 21 11:50:30 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5990 byte(s)
Diff to previous 17949
From Bertrand:
Make sure that Gpad and GUI libs are loaded with TBrowser

Revision 17949 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 13 21:23:10 2007 UTC (7 years, 11 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5777 byte(s)
Diff to previous 15849
implement delayed loading of graphics libraries. The libraries
(TGuiFactory, TVirtualX, TColor's, etc) will be loaded and initialized
only when libGpad is loaded.

Revision 15849 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 13:36:44 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5567 byte(s)
Diff to previous 15134
Instead of providing default implementations for copy ctor's and assignment
operators we better make them private (and not implemented) to avoid people
from accidentally using them. Especially the collections classes and the
TQObject derived classes. In these classes the default implementations would
cause havoc due to multiple deletions of the same objects and other
potential memory corruptions.

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5515 byte(s)
Diff to previous 14996
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 14996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 11 10:35:08 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5514 byte(s)
Diff to previous 9519
From Federico Carminati:
A few fixes to optimize the use of the gcc compiler option effc++

Revision 9519 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 14 11:43:50 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5426 byte(s)
Diff to previous 9438
HandleIdleTimer() now emits a signal, so it easy to connect any number of
slots to the idle timer.

Revision 9438 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 8 11:50:08 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5413 byte(s)
Diff to previous 8837
add new method IsRunning() which returns true when TApplication::Run()
has been called. It is sometime important to know is e.g. synchronous
timers will run and they will not run when IsRunning() is false.

Revision 8837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 08:14:10 2004 UTC (10 years, 8 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5265 byte(s)
Diff to previous 8835
rename SetNoechoMode() to SetEchoMode(), kFALSE=off, kTRUE=on.

Revision 8835 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 08:05:33 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5266 byte(s)
Diff to previous 8161
From Valeriy Onuchin:
 - add TApplication::SetNoechoMode method.
    It could be used for
      o handling passwords
      o cases described at  http://root.cern.ch/phpBB2/viewtopic.php?t=575

Revision 8161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 9 09:50:17 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 5219 byte(s)
Diff to previous 8131
chane int to Int_t in the method signatures.

Revision 8131 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 5 10:05:06 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5204 byte(s)
Diff to previous 7964
From Valeriy Onuchin:
there was request (and few related requests in the past)
for console keys  polling
http://root.cern.ch/phpBB2/viewtopic.php?t=393
To make it possible I added signals to TApplication class:

virtual void    Terminate(int status = 0);   //*SIGNAL*
virtual void    KeyPressed(int key);         //*SIGNAL*
virtual void    ReturnPressed(char *text );  //*SIGNAL*

Revision 7964 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 21 22:22:36 2004 UTC (11 years ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 5000 byte(s)
Diff to previous 7611
From Philippe:

This patch implements having -q terminating the processs using the return value of the command.

Revision 7611 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 18 16:59:58 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 4998 byte(s)
Diff to previous 7454
From Valeriy Onuchin:

- a protection added to TApplication in case fArgv is zero.

Revision 7454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 22 17:20:50 2003 UTC (11 years, 3 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4986 byte(s)
Diff to previous 5853
implement automatic switching to batch mode when no connection to an X server
can be established, instead of exiting the program.

Revision 5853 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 7 17:31:29 2003 UTC (12 years ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4955 byte(s)
Diff to previous 3498
make SetReturnFromRUn() public.

Revision 3498 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 19 07:15:19 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 4951 byte(s)
Diff to previous 2824
This patch from Philippe gives the user access to the cint error code after an
attempt to 'interpret'.


In particular the following methods have one more optional
parameter:

TApplication::ProcessLine
TApplication::ProcessFile
TObject::Execute
TROOT::ProcessLine
TROOT::ProcessLineFast
TROOT::ProcessLineSync
TROOT::LoadMacro
TROOT::Macro
and
TInterpreter::Execute
TInterpreter::LoadMacro
TInterpreter::ProcessLine
TInterpreter::ProcessLineAsync
TInterpreter::ProcessLineSync
TInterpreter::ExecuteMacro
TInterpreter::Calc
and the corresponding method in TCint.

The extra parameter is a pointer to an int (or a TInterpreter::EErrorCode
when available).  If this pointer is not zero, it will be used to pass
back information on the CINT error status.  The result are defined
in the enum TInterpreter::EErrorCode.

This is the best method of passing the information, because some
of the methods are already returning a result and using a global
variable (i.e. TInterpreter::GetLastErrorStatus) would lead to
indescriptible confusion (remember that there can be several
nested call to ProcessLine including one 'implied' call resulting
from the command line interpretation).

In the asynchronous case, the error status is set to kProcessing until
completion.  The windows part, which consist of reseting the error status
to the proper value upon completion will be implemented in a future patch.

Also LoadMacro and Macro were updated to be able to use ACLiC and
to be able to run named macro.

Revision 2824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 17:07:23 2001 UTC (13 years, 4 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4919 byte(s)
Diff to previous 2457
change by Valery Fine to fix 100% CPU usage in terminal input loop on Windows.

Revision 2457 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 25 16:28:39 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4904 byte(s)
Diff to previous 2353
fix for two issues:
  1) option -l does not print ROOT info message in addition to not showing
     the splash screen.
  2) script files which have the execute bit set are now also again accepted
     as command line arguments (reported by Yves Schutz).

Revision 2353 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 1 16:18:44 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4760 byte(s)
Diff to previous 2043
initialize all members in default ctor.

Revision 2043 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 22 16:00:56 2001 UTC (13 years, 9 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4821 byte(s)
Diff to previous 904
set gRootName and the TROOT name in TApplication equal to the appClassName
argument passed to TApplication. The ROOT name is used by the TEnv system
to lookup specific settings for specific classes of applications. Before
this name was set in the TROOT ctor, but now, with the automatic TROOT object
this is not possible.

Revision 904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 16:00:45 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/base/inc/TApplication.h
File length: 4820 byte(s)
Diff to previous 3
Declare fAppImp not persistent

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/base/inc/TApplication.h
File length: 4761 byte(s)
Copied from: branches/rdm/base/inc/TApplication.h revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/base/inc/TApplication.h
File length: 4761 byte(s)
Initial import of ROOT into CVS

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