Changeset 104 for trunk/src/fortran


Ignore:
Timestamp:
Oct 14, 2005, 9:43:27 AM (19 years ago)
Author:
dkearney
Message:

This update brings us one step closer to being const correct in the RpUnits
class. Added a few more comments. All other files touched were made to
comply with the new const correct RpUnits.[h,cc]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fortran/RpUnitsFInterface.cc

    r93 r104  
    2222
    2323    int result = -1;
    24     RpUnits* newUnit = NULL;
    25     RpUnits* basis = NULL;
     24    const RpUnits* newUnit = NULL;
     25    const RpUnits* basis = NULL;
    2626    std::string basisStrName = "";
    2727    std::string newUnitName = "";
     
    6464
    6565    // RpUnits* searchUnit = RpUnits::find(searchName);
    66     RpUnits* searchUnit = RpUnits::find(inText);
     66    const RpUnits* searchUnit = RpUnits::find(inText);
    6767
    6868    if (searchUnit) {
     
    8181{
    8282    int result = -1;
    83     RpUnits* newBasis = NULL;
     83    const RpUnits* newBasis = NULL;
    8484
    8585    if (basis && *basis) {
     
    9797rp_get_units(int* unitRefVal, char* retText, int retText_len)
    9898{
    99     RpUnits* unitObj = NULL;
     99    const RpUnits* unitObj = NULL;
    100100    std::string unitNameText = "";
    101101    int result = 0;
     
    115115rp_get_units_name(int* unitRefVal, char* retText, int retText_len)
    116116{
    117     RpUnits* unitObj = NULL;
     117    const RpUnits* unitObj = NULL;
    118118    std::string unitNameText = "";
    119119    int result = 0;
     
    133133rp_get_exponent(int* unitRefVal, double* retExponent)
    134134{
    135     RpUnits* unitObj = NULL;
     135    const RpUnits* unitObj = NULL;
    136136    int result = 0;
    137137
     
    149149rp_get_basis(int* unitRefVal)
    150150{
    151     RpUnits* unitObj = NULL;
    152     RpUnits* basisObj = NULL;
     151    const RpUnits* unitObj = NULL;
     152    const RpUnits* basisObj = NULL;
    153153    int result = -1;
    154154
     
    170170int
    171171rp_units_convert_dbl (  char* fromVal,
    172                             char* toUnitsName,
    173                             double* convResult,
    174                             int fromVal_len,
    175                             int toUnitsName_len ) {
     172                        char* toUnitsName,
     173                        double* convResult,
     174                        int fromVal_len,
     175                        int toUnitsName_len ) {
    176176
    177177    char* inFromVal = NULL;
     
    210210int
    211211rp_units_convert_str (      char* fromVal,
    212                                 char* toUnitsName,
    213                                 char* retText,
    214                                 int fromVal_len,
    215                                 int toUnitsName_len,
    216                                 int retText_len     ) {
     212                            char* toUnitsName,
     213                            char* retText,
     214                            int fromVal_len,
     215                            int toUnitsName_len,
     216                            int retText_len     ) {
    217217
    218218    char* inFromVal = NULL;
Note: See TracChangeset for help on using the changeset viewer.