Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIGAG.hh,v 1.6 2003/06/16 16:55:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4UIGAG.hh
|
||||
// GAG(Geant4 adaptive GUI) interface class
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIGainServer.hh,v 1.4 2003/06/16 16:55:50 gunter Exp $
|
||||
// $Name: geant4-07-01 $
|
||||
// $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIGAG.cc,v 1.16 2003/06/16 16:55:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4UIGAG.cc,v 1.17 2005/11/21 13:43:08 hajime Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G4UIGAG.cc
|
||||
// 18.Feb.98 M.Nagamatu and T.Kodama created G4UIGAG from G4UIterminal
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "G4UIcommandTree.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4UIcommandStatus.hh"
|
||||
#include <strstream>
|
||||
#include <sstream>
|
||||
|
||||
G4UIGAG::G4UIGAG()//: TVersion("T1.0a"), JVersion("J1.0a")
|
||||
{
|
||||
@@ -254,7 +254,7 @@ G4String G4UIGAG::GetCommand()
|
||||
G4String ss = nC(1,nC.length()-1);
|
||||
G4int vl;
|
||||
const char* tt = ss;
|
||||
std::istrstream is((char*)tt);
|
||||
std::istringstream is((char*)tt);
|
||||
is >> vl;
|
||||
G4int nh = UI->GetNumberOfHistory();
|
||||
if(vl>=0 && vl<nh)
|
||||
|
||||
@@ -22,15 +22,15 @@
|
||||
//
|
||||
//
|
||||
// 12/06/2002 G4UIGainServer H. MInamimoto and H. Yoshida created
|
||||
// $Id: G4UIGainServer.cc,v 1.8 2005/04/25 07:09:01 gcosmo Exp $
|
||||
// $Name: geant4-07-01 $
|
||||
// $Id: G4UIGainServer.cc,v 1.9 2005/11/21 13:44:09 hajime Exp $
|
||||
// $Name: geant4-08-00 $
|
||||
//
|
||||
#ifndef WIN32
|
||||
|
||||
#include "G4UIGainServer.hh"
|
||||
#include <netdb.h>
|
||||
|
||||
#include <strstream>
|
||||
#include <sstream>
|
||||
#include "G4StateManager.hh"
|
||||
#include "G4UIcommandTree.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
@@ -262,7 +262,7 @@ G4String G4UIGainServer::GetCommand()
|
||||
G4String ss = nC(1,nC.length()-1);
|
||||
G4int vl;
|
||||
const char* tt = ss;
|
||||
std::istrstream is((char*)tt);
|
||||
std::istringstream is((char*)tt);
|
||||
is >> vl;
|
||||
G4int nh = UI->GetNumberOfHistory();
|
||||
if(vl>=0 && vl<nh)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.75 2005/04/25 07:09:15 gcosmo Exp $
|
||||
$Id: History,v 1.78 2005/11/28 18:20:20 gcosmo Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -17,6 +17,16 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
28 November 2005, Gabriele Cosmo (interface-V07-01-02)
|
||||
- G4UIXm.cc migrated to sstream
|
||||
|
||||
21 November 2005, Hajime Yoshida (interface-V07-01-01)
|
||||
- G4UIGAG.cc and G4UIGainServer.cc migrated to sstream
|
||||
|
||||
26 October 2005, Koichi Murakami (interfaces-V07-01-00)
|
||||
- G4UItcsh/G4UIterminal/G4VBasicShell:
|
||||
migration from strstream to sstream
|
||||
|
||||
22 April 2005, Gabriele Cosmo (interfaces-V07-00-01)
|
||||
- G4UIGainServer: fixed conditional compilation for MacOS 10.4.
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIArrayString.hh,v 1.2 2001/07/11 10:01:19 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIArrayString_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIWin32.hh,v 1.13 2004/04/08 08:29:47 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
#ifndef G4UIWin32_h
|
||||
#define G4UIWin32_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXaw.hh,v 1.5 2001/07/11 10:01:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
#ifndef G4UIXaw_h
|
||||
#define G4UIXaw_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXm.hh,v 1.12 2003/06/16 16:55:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
#ifndef G4UIXm_h
|
||||
#define G4UIXm_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcsh.hh,v 1.3 2001/07/11 10:01:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIcsh_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UItcsh.hh,v 1.6 2003/06/16 16:55:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UItcsh_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIterminal.hh,v 1.8 2003/06/16 16:55:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4UIterminal_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUIshell.hh,v 1.5 2001/11/26 19:15:08 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4VUIshell_h
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIArrayString.cc,v 1.7 2003/06/16 16:55:58 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIWin32.cc,v 1.12 2004/06/07 13:33:36 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXaw.cc,v 1.5 2002/11/06 08:12:37 barrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIXm.cc,v 1.12 2004/11/21 16:56:34 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4UIXm.cc,v 1.13 2005/11/28 18:20:20 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#ifdef G4UI_BUILD_XM_SESSION
|
||||
|
||||
#include "G4Types.hh"
|
||||
#include <strstream>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4UIcsh.cc,v 1.7 2003/06/16 16:56:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#include "G4UIcsh.hh"
|
||||
|
||||
@@ -21,18 +21,18 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UItcsh.cc,v 1.10 2003/06/16 16:56:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4UItcsh.cc,v 1.11 2005/10/26 06:19:35 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
#include <ctype.h>
|
||||
#include "G4Types.hh"
|
||||
#include <strstream>
|
||||
#include "G4StateManager.hh"
|
||||
#include "G4UIcommandStatus.hh"
|
||||
#include "G4UItcsh.hh"
|
||||
#include <ctype.h>
|
||||
#include <sstream>
|
||||
|
||||
// ASCII character code
|
||||
static const char AsciiCtrA = '\001';
|
||||
@@ -107,10 +107,9 @@ void G4UItcsh::MakePrompt(const char* msg)
|
||||
break;
|
||||
case 'h': // history#
|
||||
{
|
||||
char st[20];
|
||||
std::ostrstream os(st,20);
|
||||
os << currentHistoryNo << '\0';
|
||||
promptString.append(st);
|
||||
std::ostringstream os;
|
||||
os << currentHistoryNo;
|
||||
promptString.append(os.str());
|
||||
i++;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -21,18 +21,19 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4UIterminal.cc,v 1.19 2003/06/16 16:56:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4UIterminal.cc,v 1.20 2005/10/26 06:19:35 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#include "G4Types.hh"
|
||||
#include <strstream>
|
||||
#include "G4StateManager.hh"
|
||||
#include "G4UIcommandTree.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4UIcommandStatus.hh"
|
||||
#include "G4UIterminal.hh"
|
||||
#include "G4UIcsh.hh"
|
||||
#include <sstream>
|
||||
|
||||
|
||||
//////////////////////////////////////////////
|
||||
G4UIterminal::G4UIterminal(G4VUIshell* aShell)
|
||||
@@ -205,7 +206,7 @@ G4String G4UIterminal::GetCommand(const char* msg)
|
||||
G4String ss= nC(1, nC.length()-1);
|
||||
G4int vl;
|
||||
const char* tt= ss;
|
||||
std::istrstream is((char*)tt);
|
||||
std::istringstream is(tt);
|
||||
is >> vl;
|
||||
G4int nh= UI-> GetNumberOfHistory();
|
||||
if(vl>=0 && vl<nh) {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VUIshell.cc,v 1.8 2003/06/16 16:56:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#include "G4UImanager.hh"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VBasicShell.hh,v 1.6 2001/07/11 10:01:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#ifndef G4VBasicShell_H
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VInteractorManager.hh,v 1.8 2003/06/16 16:56:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Win32.hh,v 1.7 2004/04/08 08:16:34 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// To unify Windows message treatment between
|
||||
// G4/interfaces Windows sessions and G4/visualizations Windows drivers.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Xt.hh,v 1.5 2001/07/11 10:01:22 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// To unify X11 event treatment between
|
||||
// G4/interfaces Xt sessions and G4/visualizations Xt drivers.
|
||||
|
||||
@@ -21,19 +21,18 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VBasicShell.cc,v 1.10 2003/06/16 16:56:07 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// $Id: G4VBasicShell.cc,v 1.11 2005/10/26 06:20:08 kmura Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "G4VBasicShell.hh"
|
||||
#include "G4StateManager.hh"
|
||||
#include "G4UIcommandTree.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
#include "G4UIcommandStatus.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include <strstream>
|
||||
#include <vector>
|
||||
#include <sstream>
|
||||
|
||||
G4VBasicShell::G4VBasicShell()
|
||||
:currentDirectory("/")
|
||||
@@ -330,7 +329,7 @@ void G4VBasicShell::ApplyShellCommand (
|
||||
G4String ss = command(1,command.length()-1);
|
||||
G4int vl;
|
||||
const char* tt = ss;
|
||||
std::istrstream is((char*)tt);
|
||||
std::istringstream is(tt);
|
||||
is >> vl;
|
||||
G4int nh = UI->GetNumberOfHistory();
|
||||
if(vl>=0 && vl<nh) {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VInteractorManager.cc,v 1.12 2003/06/16 16:56:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Win32.cc,v 1.8 2004/04/08 15:35:05 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4Xt.cc,v 1.10 2003/10/17 09:34:27 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-07-01 $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
// G.Barrand
|
||||
|
||||
|
||||
Reference in New Issue
Block a user