Ignore:
Timestamp:
Oct 23, 2009 7:56:25 AM (14 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/c/number

    r1581 r1586  
    5959    void Rp_NumberVValue(Rp_Number *num, void *storage, size_t numHints,
    6060                         va_list arg) const;
     61    void Rp_NumberRandom();
     62    Rp_Chain *Rp_NumberDiff(const Rp_Object *o);
    6163
    6264    void Rp_NumberAddPreset(Rp_Number *num, const char *label,
     
    368370                va_list arg. Values stored in the object are
    369371                not changed.
     372    Code Example:
     373
     374void Rp_NumberRandom();
     375    Purpose: populate the object with a random value
     376    Input Arguments: 0
     377    Return Value: None
     378    Notes: the current value of this object will be populated
     379           with a random value that fits within the min and
     380           max if they were specified.
     381    Code Example:
     382
     383Rp_Chain *Rp_NumberDiff(const Rp_Object *o);
     384    Purpose: return a linked list showing the differences between
     385             this object and Rp_Object *o
     386    Input Arguments: 1
     387        1. const Rp_Object *o - object to diff against
     388    Return Value: list of differences between objects
     389    Notes: None
    370390    Code Example:
    371391
Note: See TracChangeset for help on using the changeset viewer.