Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UImessenger.cc,v 1.1.10.1 1999/12/07 20:49:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4UImessenger.cc,v 1.2 1999/12/15 14:50:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
@@ -15,11 +15,7 @@
|
||||
#include <string.h>
|
||||
#include "G4ios.hh"
|
||||
|
||||
#ifdef WIN32
|
||||
# include <Strstrea.h>
|
||||
#else
|
||||
# include <strstream.h>
|
||||
#endif
|
||||
#include "g4std/strstream"
|
||||
|
||||
|
||||
G4UImessenger::G4UImessenger() { }
|
||||
@@ -42,7 +38,7 @@ G4bool G4UImessenger::operator == (const G4UImessenger& messenger) const {
|
||||
G4String G4UImessenger::ItoS(G4int i)
|
||||
{
|
||||
char defVal[20];
|
||||
ostrstream os(defVal,20);
|
||||
G4std::ostrstream os(defVal,20);
|
||||
os << i << '\0';
|
||||
return G4String(defVal);
|
||||
}
|
||||
@@ -50,7 +46,7 @@ G4String G4UImessenger::ItoS(G4int i)
|
||||
G4String G4UImessenger::DtoS(G4double a)
|
||||
{
|
||||
char defVal[40];
|
||||
ostrstream os(defVal,40);
|
||||
G4std::ostrstream os(defVal,40);
|
||||
os << a << '\0';
|
||||
return G4String(defVal);
|
||||
}
|
||||
@@ -66,7 +62,7 @@ G4int G4UImessenger::StoI(G4String s)
|
||||
{
|
||||
G4int vl;
|
||||
const char* t = s;
|
||||
istrstream is((char*)t);
|
||||
G4std::istrstream is((char*)t);
|
||||
is >> vl;
|
||||
return vl;
|
||||
}
|
||||
@@ -75,7 +71,7 @@ G4double G4UImessenger::StoD(G4String s)
|
||||
{
|
||||
G4double vl;
|
||||
const char* t = s;
|
||||
istrstream is((char*)t);
|
||||
G4std::istrstream is((char*)t);
|
||||
is >> vl;
|
||||
return vl;
|
||||
}
|
||||
@@ -94,6 +90,6 @@ G4bool G4UImessenger::StoB(G4String s)
|
||||
void G4UImessenger::AddUIcommand(G4UIcommand * newCommand)
|
||||
{
|
||||
G4cerr << "Warning : Old style definition of G4UIcommand <"
|
||||
<< newCommand->GetCommandPath() << ">." << endl;
|
||||
<< newCommand->GetCommandPath() << ">." << G4endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user