Log of /trunk/core/base/inc/TApplication.h
Parent Directory
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
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
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
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
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
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
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
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
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
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.
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.