Changeset 400 for trunk/include


Ignore:
Timestamp:
Apr 9, 2006, 10:03:43 PM (19 years ago)
Author:
dkearney
Message:

more tcl bindings related adjustments. this version should work well with most examples in the zoo directory.
proper changes still need to be made to gui scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/core/RpUnits.h

    r388 r400  
    299299
    300300        // retrieve a list of compatible units.
    301         std::list<std::string> getCompatible() const;
     301        std::list<std::string> getCompatible(double expMultiplier=1.0) const;
    302302
    303303
     
    343343        static const RpUnits* find(std::string key);
    344344
     345        // validate is very similar to find, but it works better
     346        // for seeing complex units can be interpreted.
     347        // it validates that if the a certain units string is
     348        // provided as a unit type, then all of the base components
     349        // of that unit are available for conversions.
     350        // returns 0 on success (units are valid)
     351        // returns !0 on failure (units not valid)
     352        static int validate(const std::string& inUnits,
     353                            std::string& type,
     354                            std::list<std::string>* compatList=NULL);
     355
    345356        // user calls define to add a RpUnits object or to add a relation rule
    346357        //
Note: See TracChangeset for help on using the changeset viewer.