Ignore:
Timestamp:
08/05/02 14:30:21 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdata
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdata/MDataChain.cc

    r1474 r1481  
    496496    switch (fOperatorType)
    497497    {
    498     case kEAbs:      str += "abs"   ; break;
    499     case kELog:      str += "log"   ; break;
    500     case kELog10:    str += "log10" ; break;
    501     case kESin:      str += "sin"   ; break;
    502     case kECos:      str += "cos"   ; break;
    503     case kETan:      str += "tan"   ; break;
    504     case kESinH:     str += "sinh"  ; break;
    505     case kECosH:     str += "cosh"  ; break;
    506     case kETanH:     str += "tanh"  ; break;
    507     case kEASin:     str += "asin"  ; break;
    508     case kEACos:     str += "acos"  ; break;
    509     case kEATan:     str += "atan"  ; break;
    510     case kESqrt:     str += "sqrt"  ; break;
    511     case kEExp:      str += "exp"   ; break;
    512     case kEPow10:    str += "pow10" ; break;
    513     case kESgn:      str += "sgn"   ; break;
    514     case kENegative: str += "-"     ; break;
    515     case kEPositive: str += "+"     ; break;
     498    case kEAbs:      str += "abs"  ; break;
     499    case kELog:      str += "log"  ; break;
     500    case kELog10:    str += "log10"; break;
     501    case kESin:      str += "sin"  ; break;
     502    case kECos:      str += "cos"  ; break;
     503    case kETan:      str += "tan"  ; break;
     504    case kESinH:     str += "sinh" ; break;
     505    case kECosH:     str += "cosh" ; break;
     506    case kETanH:     str += "tanh" ; break;
     507    case kEASin:     str += "asin" ; break;
     508    case kEACos:     str += "acos" ; break;
     509    case kEATan:     str += "atan" ; break;
     510    case kESqrt:     str += "sqrt" ; break;
     511    case kEExp:      str += "exp"  ; break;
     512    case kEPow10:    str += "pow10"; break;
     513    case kESgn:      str += "sgn"  ; break;
     514    case kENegative: str += "-"    ; break;
     515    case kEPositive: str += "+"    ; break;
    516516    case kENoop:
    517517        break;
  • trunk/MagicSoft/Mars/mdata/MDataChain.h

    r1474 r1481  
    6767    TString GetRule() const;
    6868
    69     ClassDef(MDataChain, 0) // A chain/concatenation of MData objects
     69    ClassDef(MDataChain, 1) // A chain/concatenation of MData objects
    7070};
    7171
  • trunk/MagicSoft/Mars/mdata/MDataList.cc

    r1474 r1481  
    3838// --------------------------------------------------------------------------
    3939//
     40//   Default Constructor. Not for usage!
     41//
     42MDataList::MDataList()
     43{
     44    fSign = kENone;
     45}
     46
     47// --------------------------------------------------------------------------
     48//
    4049//   Constructor.
    4150//
    42 //   Specify the boolean operation which is used to evaluate the
    43 //   result of this list. If no operation is specified "land" is
    44 //   used.
     51//   Specify the operation which is used to evaluate the
     52//   result of this list.
    4553//
    4654//   Options:
    47 //      and, &   : is a bitwise and
    48 //      or, |    : is a bitwise or
    49 //      xor, ^   : is a bitwise exclusive or
    50 //      land, && : is a logical and
    51 //      lor, ||  : is a logical or
     55//      *,  /,  -,  +
    5256//
    5357MDataList::MDataList(char type)
  • trunk/MagicSoft/Mars/mdata/MDataList.h

    r1474 r1481  
    2929
    3030public:
     31    MDataList();
    3132    MDataList(char type);
    3233    MDataList(MDataList &ts);
     
    4950    TString GetRule() const;
    5051
    51     ClassDef(MDataList, 0) // A concatenation of MData objects by one operator
     52    ClassDef(MDataList, 1) // A concatenation of MData objects by one operator
    5253};
    5354
  • trunk/MagicSoft/Mars/mdata/MDataMember.cc

    r1474 r1481  
    3636//
    3737/////////////////////////////////////////////////////////////////////////////
     38#include "MDataMember.h"
    3839
    39 #include "MDataMember.h"
     40#include <fstream.h>
    4041
    4142#include <TMethodCall.h>
     
    5960    fObject = obj;
    6061    fCall   = call;
     62
     63    fDataMember = (TString)obj->GetName() + "." + call->GetName();
    6164}
    6265
     
    7275    fObject = obj;
    7376    fCall   = obj->GetterMethod(call);
     77
     78    fDataMember = (TString)obj->GetName() + "." + call;
    7479}
    7580
     
    8287    if (!fCall)
    8388    {
    84         *fLog << err << "No TMethodCall for " << fName << " of ";
     89        *fLog << err << "No TMethodCall for " << fDataMember << " of ";
    8590        *fLog << fObject->GetName() << " available... returning 0." << endl;
    8691        return 0;
     
    100105
    101106    default:
    102         *fLog << err << "DataMember " << fName << " of ";
     107        *fLog << err << "DataMember " << fDataMember << " of ";
    103108        *fLog << fObject->GetName() << " neither int nor float... returning 0." << endl;
    104109        return 0;
     
    120125        return kTRUE;
    121126
    122     TString cname(fName);
    123     TString mname(fName);
     127    TString cname(fDataMember);
     128    TString mname(fDataMember);
    124129
    125130    const char *dot = strrchr(cname, '.');
     
    167172TString MDataMember::GetRule() const
    168173{
    169     return fName;
     174    return fDataMember;
    170175}
  • trunk/MagicSoft/Mars/mdata/MDataMember.h

    r1474 r1481  
    1515{
    1616private:
     17    TString fDataMember;
     18
    1719    MParContainer *fObject;
    1820    TMethodCall   *fCall;
    1921
    2022public:
    21     MDataMember(const char *member) : fObject(NULL), fCall(NULL)
     23    MDataMember(const char *member=NULL) : fObject(NULL), fCall(NULL)
    2224    {
    23         fName = member;
     25        fDataMember = member;
    2426    }
     27
    2528    MDataMember(MParContainer *obj, TMethodCall *call);
    2629    MDataMember(MParContainer *obj, const TString call);
     
    3538    TString GetRule() const;
    3639
    37     ClassDef(MDataMember, 0) // MData object corresponding to a single data member of a Mars container
     40    ClassDef(MDataMember, 1) // MData object corresponding to a single data member of a Mars container
    3841};
    3942
  • trunk/MagicSoft/Mars/mdata/MDataValue.h

    r1474 r1481  
    3131    TString GetRule() const;
    3232
    33     ClassDef(MDataValue, 0) // MData object corresponding to a single value
     33    ClassDef(MDataValue, 1) // MData object corresponding to a single value
    3434};
    3535
Note: See TracChangeset for help on using the changeset viewer.