Changeset 1225 in Sophya


Ignore:
Timestamp:
Oct 11, 2000, 7:27:23 PM (25 years ago)
Author:
ansari
Message:

Ajout de datatype.cc .h , correction ds MuTyV et DVList - CMV+Reza 11/10/2000

Location:
trunk/SophyaLib/BaseTools
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/Makefile

    r1088 r1225  
    33all: $(LIB)libSysTools.a
    44clean:
    5         rm -f $(OBJ)ctimer.o $(OBJ)datacards.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
     5        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
    66        rm -f $(LIB)libSysTools.a
    7 $(LIB)libSysTools.a : $(OBJ)ctimer.o $(OBJ)datacards.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
     7$(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
    88        $(ARCXX) $(ARCXXFLAGS) $@ $?
    99ifeq ($(CXX),cxx)
     
    1313$(OBJ)ctimer.o: ctimer.cc machdefs.h ctimer.h
    1414$(OBJ)datacards.o: datacards.cc machdefs.h datacards.h pexceptions.h
     15$(OBJ)datatype.o: datatype.cc datatype.h machdefs.h
    1516$(OBJ)dvlist.o: dvlist.cc machdefs.h dvlist.h objfio.h anydataobj.h \
    1617 ppersist.h pexceptions.h gnumd5.h mutyv.h strutil.h
  • trunk/SophyaLib/BaseTools/dvlist.cc

    r1157 r1225  
    199199ValList::const_iterator it = mvlist.find(key);
    200200if (it == mvlist.end())  return(def);
    201 return((*it).second.elval.iv);
     201return( (int_8)((*it).second.elval) );
    202202}
    203203
     
    209209ValList::const_iterator it = mvlist.find(key);
    210210if (it == mvlist.end())  return(def);
    211 return((*it).second.elval.dv);
     211return( (r_8)((*it).second.elval) );
    212212}
    213213
     
    219219ValList::const_iterator it = mvlist.find(key);
    220220if (it == mvlist.end())  return(def);
    221 return((*it).second.elval.dv);
     221return( (complex<r_8>)((*it).second.elval) );
    222222}
    223223
     
    229229ValList::const_iterator it = mvlist.find(key);
    230230if (it == mvlist.end())  return(def);
    231 return(*((*it).second.elval.strv));
     231return( (string)((*it).second.elval) );
    232232}
    233233
  • trunk/SophyaLib/BaseTools/mutyv.cc

    r1157 r1225  
    7070{
    7171  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  }
    7476  return(*this);
    7577}
     
    7981{
    8082  typ = 'S';
    81   strv = new string(s);
     83  if (strv) *strv = s; 
     84  else strv = new string(s);
    8285  mutyv_decodestr(s, dv, dv_im);
    8386  iv = (int_8)dv;
     
    8992{
    9093  typ = 'S';
    91   strv = new string(s);
     94  if (strv) *strv = s; 
     95  else strv = new string(s);
    9296  mutyv_decodestr(s.c_str(), dv, dv_im);
    9397  iv = (int_8)dv;
  • trunk/SophyaLib/BaseTools/objlist.list

    r1088 r1225  
    11ctimer.o
    22datacards.o
     3datatype.o
    34dvlist.o
    45fiondblock.o
  • trunk/SophyaLib/BaseTools/sversion.h

    r1197 r1225  
    33
    44#define SOPHYA_VERSION   0.9
    5 #define SOPHYA_REVISION  91
    6 #define SOPHYA_TAG       "V_Aou2000"
     5#define SOPHYA_REVISION  93
     6#define SOPHYA_TAG       "V_Sep2000"
    77
    88#endif
Note: See TracChangeset for help on using the changeset viewer.