50 std::vector<G4String> token_vector;
53 while( (str = tkn()) !=
"" ) {
54 token_vector.push_back(str);
60 if (default_unit !=
"" && token_vector.size() >= 2) {
64 * value_given / value_default;
67 converted_parameter +=
" ";
68 converted_parameter += default_unit;
69 for (
size_t i=2 ; i< token_vector.size(); i++) {
70 converted_parameter +=
" ";
71 converted_parameter += token_vector[i];
74 converted_parameter = parameterList;
90 std::istringstream is(paramString);
101 std::istringstream is(paramString);
113 G4String aToken = candidateTokenizer();
114 std::ostringstream os;
133(
const char * theName,
G4bool omittable,
G4bool currentAsDefault)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetDefaultValue(G4double defVal)
void SetUnitCandidates(const char *candidateList)
G4String ConvertToStringWithDefaultUnit(G4double val)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewUnitValue(const char *paramString)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewDoubleValue(const char *paramString)
G4UIcmdWithADoubleAndUnit(const char *theCommandPath, G4UImessenger *theMessenger)
static G4double GetNewDoubleRawValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
G4String ConvertToStringWithBestUnit(G4double val)
virtual G4int DoIt(G4String parameterList)
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
static G4double ValueOf(const char *unitName)
virtual G4int DoIt(G4String parameterList)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
static G4String UnitsList(const char *unitCategory)
static G4double ConvertToDouble(const char *st)
static G4double ConvertToDimensionedDouble(const char *st)
void SetDefaultValue(const char *theDefaultValue)
G4String GetDefaultValue() const
G4bool IsOmittable() const
void SetOmittable(G4bool om)
void SetParameterName(const char *theName)
G4String GetParameterCandidates() const
void SetParameterCandidates(const char *theString)
void SetCurrentAsDefault(G4bool val)