Changeset 1581 for trunk/src/objects/RpNumber.h
- Timestamp:
- Oct 17, 2009, 9:01:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/objects/RpNumber.h
r1569 r1581 39 39 void units(const char *p); 40 40 41 int minset() const; 42 int maxset() const; 43 int defset() const; 44 int curset() const; 45 41 46 // convert the value stored in this object to specified units 42 47 // does not return the converted value 43 48 // error code is returned 44 intconvert(const char *to);49 Outcome& convert(const char *to); 45 50 46 51 // get the value of this object converted to specified units 47 52 // does not change the value of the object 48 53 // error code is returned 49 int value(const char *units, double *value) const; 54 double value(const char *units) const; 55 void vvalue(void *storage, size_t numHints, va_list arg) const; 50 56 51 57 Number& addPreset(const char *label, const char *desc, … … 57 63 Number& delPreset(const char *label); 58 64 59 60 void configure(size_t as, ClientData c);61 void dump(size_t as, ClientData c);62 65 63 66 const int is() const; … … 73 76 int _minSet; 74 77 int _maxSet; 78 int _defSet; 79 int _curSet; 75 80 76 81 // hash or linked list of preset values … … 84 89 }; 85 90 86 void __configureFromXml(ClientData c);87 91 void __configureFromTree(ClientData c); 88 void __dumpToXml(ClientData c);89 92 void __dumpToTree(ClientData c); 93 94 void __convertFromString(const char *val, double *ret); 95 void __valUnitsSplit( const char *inStr, double *val, 96 const char **units); 90 97 }; 91 98
Note: See TracChangeset
for help on using the changeset viewer.