Changeset 1481 for trunk/MagicSoft/Mars/mdata
- Timestamp:
- 08/05/02 14:30:21 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mdata
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mdata/MDataChain.cc
r1474 r1481 496 496 switch (fOperatorType) 497 497 { 498 case kEAbs: str += "abs" 499 case kELog: str += "log" 500 case kELog10: str += "log10" 501 case kESin: str += "sin" 502 case kECos: str += "cos" 503 case kETan: str += "tan" 504 case kESinH: str += "sinh" 505 case kECosH: str += "cosh" 506 case kETanH: str += "tanh" 507 case kEASin: str += "asin" 508 case kEACos: str += "acos" 509 case kEATan: str += "atan" 510 case kESqrt: str += "sqrt" 511 case kEExp: str += "exp" 512 case kEPow10: str += "pow10" 513 case kESgn: str += "sgn" 514 case kENegative: str += "-" 515 case kEPositive: str += "+" 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; 516 516 case kENoop: 517 517 break; -
trunk/MagicSoft/Mars/mdata/MDataChain.h
r1474 r1481 67 67 TString GetRule() const; 68 68 69 ClassDef(MDataChain, 0) // A chain/concatenation of MData objects69 ClassDef(MDataChain, 1) // A chain/concatenation of MData objects 70 70 }; 71 71 -
trunk/MagicSoft/Mars/mdata/MDataList.cc
r1474 r1481 38 38 // -------------------------------------------------------------------------- 39 39 // 40 // Default Constructor. Not for usage! 41 // 42 MDataList::MDataList() 43 { 44 fSign = kENone; 45 } 46 47 // -------------------------------------------------------------------------- 48 // 40 49 // Constructor. 41 50 // 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. 45 53 // 46 54 // 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 // *, /, -, + 52 56 // 53 57 MDataList::MDataList(char type) -
trunk/MagicSoft/Mars/mdata/MDataList.h
r1474 r1481 29 29 30 30 public: 31 MDataList(); 31 32 MDataList(char type); 32 33 MDataList(MDataList &ts); … … 49 50 TString GetRule() const; 50 51 51 ClassDef(MDataList, 0) // A concatenation of MData objects by one operator52 ClassDef(MDataList, 1) // A concatenation of MData objects by one operator 52 53 }; 53 54 -
trunk/MagicSoft/Mars/mdata/MDataMember.cc
r1474 r1481 36 36 // 37 37 ///////////////////////////////////////////////////////////////////////////// 38 #include "MDataMember.h" 38 39 39 #include "MDataMember.h"40 #include <fstream.h> 40 41 41 42 #include <TMethodCall.h> … … 59 60 fObject = obj; 60 61 fCall = call; 62 63 fDataMember = (TString)obj->GetName() + "." + call->GetName(); 61 64 } 62 65 … … 72 75 fObject = obj; 73 76 fCall = obj->GetterMethod(call); 77 78 fDataMember = (TString)obj->GetName() + "." + call; 74 79 } 75 80 … … 82 87 if (!fCall) 83 88 { 84 *fLog << err << "No TMethodCall for " << f Name<< " of ";89 *fLog << err << "No TMethodCall for " << fDataMember << " of "; 85 90 *fLog << fObject->GetName() << " available... returning 0." << endl; 86 91 return 0; … … 100 105 101 106 default: 102 *fLog << err << "DataMember " << f Name<< " of ";107 *fLog << err << "DataMember " << fDataMember << " of "; 103 108 *fLog << fObject->GetName() << " neither int nor float... returning 0." << endl; 104 109 return 0; … … 120 125 return kTRUE; 121 126 122 TString cname(f Name);123 TString mname(f Name);127 TString cname(fDataMember); 128 TString mname(fDataMember); 124 129 125 130 const char *dot = strrchr(cname, '.'); … … 167 172 TString MDataMember::GetRule() const 168 173 { 169 return f Name;174 return fDataMember; 170 175 } -
trunk/MagicSoft/Mars/mdata/MDataMember.h
r1474 r1481 15 15 { 16 16 private: 17 TString fDataMember; 18 17 19 MParContainer *fObject; 18 20 TMethodCall *fCall; 19 21 20 22 public: 21 MDataMember(const char *member ) : fObject(NULL), fCall(NULL)23 MDataMember(const char *member=NULL) : fObject(NULL), fCall(NULL) 22 24 { 23 f Name= member;25 fDataMember = member; 24 26 } 27 25 28 MDataMember(MParContainer *obj, TMethodCall *call); 26 29 MDataMember(MParContainer *obj, const TString call); … … 35 38 TString GetRule() const; 36 39 37 ClassDef(MDataMember, 0) // MData object corresponding to a single data member of a Mars container40 ClassDef(MDataMember, 1) // MData object corresponding to a single data member of a Mars container 38 41 }; 39 42 -
trunk/MagicSoft/Mars/mdata/MDataValue.h
r1474 r1481 31 31 TString GetRule() const; 32 32 33 ClassDef(MDataValue, 0) // MData object corresponding to a single value33 ClassDef(MDataValue, 1) // MData object corresponding to a single value 34 34 }; 35 35
Note:
See TracChangeset
for help on using the changeset viewer.