--------------------------------------------------------------------
| 106 | |
| 107 | // -------------------------------------------------------------------- |
| 108 | G4double G4UIcmdWithADoubleAndUnit::GetNewUnitValue(const char* paramString) |
| 109 | { |
| 110 | G4double vl; |
| 111 | char unts[30]; |
| 112 | |
| 113 | std::istringstream is(paramString); |
| 114 | is >> vl >> unts; |
| 115 | G4String unt = unts; |
| 116 | |
| 117 | return ValueOf(unt); |
| 118 | } |
| 119 | |
| 120 | // -------------------------------------------------------------------- |
| 121 | G4String G4UIcmdWithADoubleAndUnit::ConvertToStringWithBestUnit(G4double val) |
no outgoing calls
no test coverage detected