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/choice

    r1581 r1586  
    4646
    4747    void vvalue(void *storage, size_t numHints, va_list arg) const;
     48    void random();
     49    Rp_Chain *diff(const Object& o);
     50
    4851
    4952    Choice& addPreset(const char *label, const char *desc,
     
    251254                va_list arg. Values stored in the object are
    252255                not changed.
     256    Code Example:
     257
     258void random();
     259    Purpose: populate the object with a random value
     260    Input Arguments: 0
     261    Return Value: None
     262    Notes: the current value of this object will be populated
     263           with a random value that fits within the min and
     264           max if they were specified.
     265    Code Example:
     266
     267Rp_Chain *diff(const Rp_Object &o);
     268    Purpose: return a linked list showing the differences between
     269             this object and Rp_Object &o
     270    Input Arguments: 1
     271        1. const Rp_Object &o - object to diff against
     272    Return Value: list of differences between objects
     273    Notes: None
    253274    Code Example:
    254275
Note: See TracChangeset for help on using the changeset viewer.