43 SetParameter(dblParam);
45 SetParameter(untParam);
51 std::vector<G4String> token_vector;
54 while( (str = tkn()) !=
"" ) {
55 token_vector.push_back(str);
61 if (default_unit !=
"" && token_vector.size() >= 2) {
67 * value_given / value_default;
70 converted_parameter +=
" ";
71 converted_parameter += default_unit;
72 for (
size_t i=2 ; i< token_vector.size(); i++) {
73 converted_parameter +=
" ";
74 converted_parameter += token_vector[i];
77 converted_parameter = parameterList;
93 std::istringstream is(paramString);
104 std::istringstream is(paramString);
116 G4String aToken = candidateTokenizer();
117 std::ostringstream os;
static G4double ValueOf(const char *unitName)
static G4String CategoryOf(const char *unitName)
void SetCurrentAsDefault(G4bool val)
static G4double ConvertToDouble(const char *st)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
virtual G4int DoIt(G4String parameterList)
G4String GetDefaultValue() const
G4UIparameter * GetParameter(G4int i) const
G4String GetParameterCandidates() const
void SetDefaultValue(const char *theDefaultValue)
static G4double GetNewDoubleValue(const char *paramString)
const XML_Char int const XML_Char * value
virtual G4int DoIt(G4String parameterList)
void SetUnitCategory(const char *unitCategory)
static G4double GetNewDoubleRawValue(const char *paramString)
G4String ConvertToStringWithDefaultUnit(G4double val)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4String ConvertToString(G4bool boolVal)
void SetParameterName(const char *theName)
G4bool IsOmittable() const
static G4String UnitsList(const char *unitCategory)
static G4double ConvertToDimensionedDouble(const char *st)
G4String ConvertToStringWithBestUnit(G4double val)
void SetParameterCandidates(const char *theString)
void SetDefaultValue(G4double defVal)
G4UIcmdWithADoubleAndUnit(const char *theCommandPath, G4UImessenger *theMessenger)
void SetOmittable(G4bool om)
void SetUnitCandidates(const char *candidateList)
void SetDefaultUnit(const char *defUnit)
static G4double GetNewUnitValue(const char *paramString)