Changeset 104 for trunk/src/cee/RpUnitsCInterface.cc
- Timestamp:
- Oct 14, 2005, 9:43:27 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cee/RpUnitsCInterface.cc
r93 r104 17 17 #endif 18 18 19 RpUnits*20 rpDefineUnit(const char* unitSymbol, RpUnits* basis) {19 const RpUnits* 20 rpDefineUnit(const char* unitSymbol, const RpUnits* basis) { 21 21 22 22 return RpUnits::define(unitSymbol, basis); 23 23 } 24 24 25 RpUnits*26 rpDefineConv( 27 RpUnits* toUnit,25 const RpUnits* 26 rpDefineConv( const RpUnits* fromUnit, 27 const RpUnits* toUnit, 28 28 double (*convForwFxnPtr)(double), 29 29 double (*convBackFxnPtr)(double) ) { … … 32 32 } 33 33 34 RpUnits*34 const RpUnits* 35 35 rpFind ( const char* key ) { 36 36 … … 39 39 40 40 const char* 41 rpGetUnits ( RpUnits* unit ) {41 rpGetUnits ( const RpUnits* unit ) { 42 42 43 43 static std::string retVal; … … 47 47 48 48 const char* 49 rpGetUnitsName ( RpUnits* unit ) {49 rpGetUnitsName ( const RpUnits* unit ) { 50 50 51 51 static std::string retVal; … … 55 55 56 56 double 57 rpGetExponent ( RpUnits* unit ) {57 rpGetExponent ( const RpUnits* unit ) { 58 58 59 59 return unit->getExponent(); 60 60 } 61 61 62 RpUnits*63 rpGetBasis ( RpUnits* unit ) {62 const RpUnits* 63 rpGetBasis ( const RpUnits* unit ) { 64 64 65 65 return unit->getBasis(); … … 67 67 68 68 int 69 rpMakeMetric( RpUnits* basis) {69 rpMakeMetric(const RpUnits* basis) { 70 70 71 71 return RpUnits::makeMetric(basis); … … 95 95 96 96 const char* 97 rpConvert_ObjStr ( RpUnits* fromUnits,98 RpUnits* toUnits,97 rpConvert_ObjStr ( const RpUnits* fromUnits, 98 const RpUnits* toUnits, 99 99 double val, 100 100 int showUnits, … … 124 124 125 125 double 126 rpConvert_ObjDbl ( RpUnits* fromUnits,127 RpUnits* toUnits,126 rpConvert_ObjDbl ( const RpUnits* fromUnits, 127 const RpUnits* toUnits, 128 128 double val, 129 129 int* result ) {
Note: See TracChangeset
for help on using the changeset viewer.