Ignore:
Timestamp:
Oct 23, 2009 7:56:25 AM (11 years ago)
Author:
dkearney
Message:

updating potential apis for c cpp and python. adding random() and diff()
functions to the rappture objects. objects should be able to generate a random
value for itself based on how it was configured. objects should be able to
compare itself with another object and tell us what the differences are.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/api/cpp/number

    r1581 r1586  
    5858    double value(const char *units) const;
    5959    void vvalue(void *storage, size_t numHints, va_list arg) const;
     60    void random();
     61    Rp_Chain *diff(const Object& o);
    6062
    6163    Number& addPreset(const char *label, const char *desc,
     
    334336                va_list arg. Values stored in the object are
    335337                not changed.
     338    Code Example:
     339
     340void random();
     341    Purpose: populate the object with a random value
     342    Input Arguments: 0
     343    Return Value: None
     344    Notes: the current value of this object will be populated
     345           with a random value that fits within the min and
     346           max if they were specified.
     347    Code Example:
     348
     349Rp_Chain *diff(const Rp_Object &o);
     350    Purpose: return a linked list showing the differences between
     351             this object and Rp_Object &o
     352    Input Arguments: 1
     353        1. const Rp_Object &o - object to diff against
     354    Return Value: list of differences between objects
     355    Notes: None
    336356    Code Example:
    337357
Note: See TracChangeset for help on using the changeset viewer.