Changeset 1225 in Sophya
- Timestamp:
- Oct 11, 2000, 7:27:23 PM (25 years ago)
- Location:
- trunk/SophyaLib/BaseTools
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/Makefile
r1088 r1225 3 3 all: $(LIB)libSysTools.a 4 4 clean: 5 rm -f $(OBJ)ctimer.o $(OBJ)datacards.o $(OBJ)d vlist.o $(OBJ)fiondblock.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)utils.o $(OBJ)gnumd5.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o5 rm -f $(OBJ)ctimer.o $(OBJ)datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)utils.o $(OBJ)gnumd5.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o 6 6 rm -f $(LIB)libSysTools.a 7 $(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ)datacards.o $(OBJ)d vlist.o $(OBJ)fiondblock.o $(OBJ)gnumd5.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o $(OBJ)utils.o7 $(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ)datacards.o $(OBJ)datatype.o $(OBJ)dvlist.o $(OBJ)fiondblock.o $(OBJ)gnumd5.o $(OBJ)mutyv.o $(OBJ)ndatablock.o $(OBJ)pdlmgr.o $(OBJ)periodic.o $(OBJ)pexceptions.o $(OBJ)ppersist.o $(OBJ)psighand.o $(OBJ)sophyainit.o $(OBJ)srandgen.o $(OBJ)strutil.o $(OBJ)timing.o $(OBJ)utils.o 8 8 $(ARCXX) $(ARCXXFLAGS) $@ $? 9 9 ifeq ($(CXX),cxx) … … 13 13 $(OBJ)ctimer.o: ctimer.cc machdefs.h ctimer.h 14 14 $(OBJ)datacards.o: datacards.cc machdefs.h datacards.h pexceptions.h 15 $(OBJ)datatype.o: datatype.cc datatype.h machdefs.h 15 16 $(OBJ)dvlist.o: dvlist.cc machdefs.h dvlist.h objfio.h anydataobj.h \ 16 17 ppersist.h pexceptions.h gnumd5.h mutyv.h strutil.h -
trunk/SophyaLib/BaseTools/dvlist.cc
r1157 r1225 199 199 ValList::const_iterator it = mvlist.find(key); 200 200 if (it == mvlist.end()) return(def); 201 return( (*it).second.elval.iv);201 return( (int_8)((*it).second.elval) ); 202 202 } 203 203 … … 209 209 ValList::const_iterator it = mvlist.find(key); 210 210 if (it == mvlist.end()) return(def); 211 return( (*it).second.elval.dv);211 return( (r_8)((*it).second.elval) ); 212 212 } 213 213 … … 219 219 ValList::const_iterator it = mvlist.find(key); 220 220 if (it == mvlist.end()) return(def); 221 return( (*it).second.elval.dv);221 return( (complex<r_8>)((*it).second.elval) ); 222 222 } 223 223 … … 229 229 ValList::const_iterator it = mvlist.find(key); 230 230 if (it == mvlist.end()) return(def); 231 return( *((*it).second.elval.strv));231 return( (string)((*it).second.elval) ); 232 232 } 233 233 -
trunk/SophyaLib/BaseTools/mutyv.cc
r1157 r1225 70 70 { 71 71 typ = a.typ; iv = a.iv; dv = a.dv; dv_im = a.dv_im; 72 if (typ == 'S') strv = new string(*(a.strv)); 73 else strv = NULL; 72 if (typ == 'S') { 73 if (strv) *strv = *(a.strv); 74 else strv = new string(*(a.strv)); 75 } 74 76 return(*this); 75 77 } … … 79 81 { 80 82 typ = 'S'; 81 strv = new string(s); 83 if (strv) *strv = s; 84 else strv = new string(s); 82 85 mutyv_decodestr(s, dv, dv_im); 83 86 iv = (int_8)dv; … … 89 92 { 90 93 typ = 'S'; 91 strv = new string(s); 94 if (strv) *strv = s; 95 else strv = new string(s); 92 96 mutyv_decodestr(s.c_str(), dv, dv_im); 93 97 iv = (int_8)dv; -
trunk/SophyaLib/BaseTools/objlist.list
r1088 r1225 1 1 ctimer.o 2 2 datacards.o 3 datatype.o 3 4 dvlist.o 4 5 fiondblock.o -
trunk/SophyaLib/BaseTools/sversion.h
r1197 r1225 3 3 4 4 #define SOPHYA_VERSION 0.9 5 #define SOPHYA_REVISION 9 16 #define SOPHYA_TAG "V_ Aou2000"5 #define SOPHYA_REVISION 93 6 #define SOPHYA_TAG "V_Sep2000" 7 7 8 8 #endif
Note:
See TracChangeset
for help on using the changeset viewer.