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

    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);
    4850
    4951    void configure(size_t as, ClientData c);
     
    244246                va_list arg. Values stored in the object are
    245247                not changed.
     248    Code Example:
     249
     250void random();
     251    Purpose: populate the object with a random value
     252    Input Arguments: 0
     253    Return Value: None
     254    Notes: the current value of this object will be populated
     255           with a random value that fits within the min and
     256           max if they were specified.
     257    Code Example:
     258
     259Rp_Chain *diff(const Rp_Object &o);
     260    Purpose: return a linked list showing the differences between
     261             this object and Rp_Object &o
     262    Input Arguments: 1
     263        1. const Rp_Object &o - object to diff against
     264    Return Value: list of differences between objects
     265    Notes: None
    246266    Code Example:
    247267
Note: See TracChangeset for help on using the changeset viewer.