Ignore:
Timestamp:
Oct 17, 2009, 9:01:23 PM (15 years ago)
Author:
dkearney
Message:

updates for the rappture objects, object examples, and object apis. small fix for rpunits c interface to check string length. there should probably be more of these checks in the c interface, but units should also be rewritten. added folders to separate out octave2 and octave3 app-fermi examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/objects/RpNumber.h

    r1569 r1581  
    3939        void units(const char *p);
    4040
     41        int minset() const;
     42        int maxset() const;
     43        int defset() const;
     44        int curset() const;
     45
    4146        // convert the value stored in this object to specified units
    4247        // does not return the converted value
    4348        // error code is returned
    44         int convert(const char *to);
     49        Outcome& convert(const char *to);
    4550
    4651        // get the value of this object converted to specified units
    4752        // does not change the value of the object
    4853        // 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;
    5056
    5157        Number& addPreset(const char *label, const char *desc,
     
    5763        Number& delPreset(const char *label);
    5864
    59 
    60         void configure(size_t as, ClientData c);
    61         void dump(size_t as, ClientData c);
    6265
    6366        const int is() const;
     
    7376        int _minSet;
    7477        int _maxSet;
     78        int _defSet;
     79        int _curSet;
    7580
    7681        // hash or linked list of preset values
     
    8489        };
    8590
    86         void __configureFromXml(ClientData c);
    8791        void __configureFromTree(ClientData c);
    88         void __dumpToXml(ClientData c);
    8992        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);
    9097};
    9198
Note: See TracChangeset for help on using the changeset viewer.