Changeset 743 for cpp/frams/param/param.h
- Timestamp:
- 02/26/18 19:57:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/param.h
r720 r743 118 118 ExtValue getById(const char* prop); 119 119 120 int setInt (int i, const char* str, bool strict = false);121 int setDouble (int i, const char* str);120 int setIntFromString(int i, const char* str, bool strict = false); 121 int setDoubleFromString(int i, const char* str); 122 122 virtual int setInt(int, paInt) = 0; ///< set long value, you can only use this for "d" type prop 123 123 virtual int setDouble(int, double) = 0; ///< set double value, you can only use this for "f" type prop … … 128 128 int set(int, const ExtValue &);///< most universal set, can be used for every datatype 129 129 130 int set (int, const char*, bool strict = false); ///< oldstyle set, can convert string to long or double130 int setFromString(int, const char*, bool strict = false); ///< oldstyle set, can convert string to long or double 131 131 132 132 int setIntById(const char* prop, paInt);///< set long value, you can only use this for "d" type prop … … 139 139 /** get valid minimum, maximum and default value for property 'prop' 140 140 @return 0 if min/max/def information is not available */ 141 int getMinMax (int prop, paInt& minumum, paInt& maximum, paInt& def);141 int getMinMaxInt(int prop, paInt& minumum, paInt& maximum, paInt& def); 142 142 /** get valid minimum, maximum and default value for property 'prop' 143 143 @return 0 if min/max/def information is not available */ 144 int getMinMax (int prop, double& minumum, double& maximum, double& def);145 int getMinMax (int prop, int& minumum, int& maximum, SString& def);146 static int getMinMax (const char* type, paInt& minumum, paInt& maximum, paInt& def);147 static int getMinMax (const char* type, double& minumum, double& maximum, double& def);148 static int getMinMax (const char* type, int& minumum, int& maximum, SString& def);144 int getMinMaxDouble(int prop, double& minumum, double& maximum, double& def); 145 int getMinMaxString(int prop, int& minumum, int& maximum, SString& def); 146 static int getMinMaxIntFromTypeDef(const char* type, paInt& minumum, paInt& maximum, paInt& def); 147 static int getMinMaxDoubleFromTypeDef(const char* type, double& minumum, double& maximum, double& def); 148 static int getMinMaxStringFromTypeDef(const char* type, int& minumum, int& maximum, SString& def); 149 149 150 150 virtual void setDefault(); … … 156 156 157 157 /** return the human readable description of the given type */ 158 static SString describeType(const char* type);159 SString describeType(int i) { return describeType(type(i)); }158 static SString friendlyTypeDescrFromTypeDef(const char* type); 159 SString friendlyTypeDescr(int i) { return friendlyTypeDescrFromTypeDef(type(i)); } 160 160 161 161 /** copy all property values from other ParamInterface object */
Note: See TracChangeset
for help on using the changeset viewer.