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

    r1581 r1586  
    4242    void Rp_PlotVValue(Rp_Plot *p, void *storage, size_t numHints,
    4343                       va_list arg) const;
     44    void Rp_PlotRandom();
     45    Rp_Chain *Rp_PlotDiff(Rp_Plot *o);
    4446
    4547    void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c);
     
    264266    Code Example:
    265267
     268void Rp_PlotRandom();
     269    Purpose: populate the object with a random value
     270    Input Arguments: 0
     271    Return Value: None
     272    Notes: the current value of this object will be populated
     273           with a random value that fits within the min and
     274           max if they were specified.
     275    Code Example:
     276
     277Rp_Chain *Rp_PlotDiff(const Rp_Object *o);
     278    Purpose: return a linked list showing the differences between
     279             this object and Rp_Object *o
     280    Input Arguments: 1
     281        1. const Rp_Object *o - object to diff against
     282    Return Value: list of differences between objects
     283    Notes: None
     284    Code Example:
     285
    266286void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c);
    267287    Purpose: configure the object based on the data in "c".
Note: See TracChangeset for help on using the changeset viewer.