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

    r1581 r1586  
    4545
    4646    void vvalue(void *storage, size_t numHints, va_list arg) const;
     47    void random();
     48    Rp_Chain *diff(const Object& o);
    4749
    4850    void configure(size_t as, ClientData c);
     
    246248    Code Example:
    247249
     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
     266    Code Example:
     267
    248268void configure(size_t as, ClientData c);
    249269    Purpose: configure the object based on the data in "c".
Note: See TracChangeset for help on using the changeset viewer.