Changeset 874 in Sophya for trunk/SophyaExt


Ignore:
Timestamp:
Apr 11, 2000, 11:16:18 AM (25 years ago)
Author:
ansari
Message:

modif utilisation typeid

Location:
trunk/SophyaExt/FitsIOServer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaExt/FitsIOServer/fitsspherehealpix.cc

    r873 r874  
    9797
    9898  char Type[2];
    99   if (strncmp( typeid(T).name(),"r_8",3)==0 || strncmp( typeid(T).name(),"double",6)==0 ) Type[0]='D';
     99  if (typeid(T) == typeid(r_8) ) Type[0]='D';
    100100  else
    101     if (strncmp( typeid(T).name(),"r_4",3)==0 || strncmp( typeid(T).name(),"float",5)==0 )  Type[0]='E';
     101    if (typeid(T) == typeid(r_4) )  Type[0]='E';
    102102    else
    103103      {
  • trunk/SophyaExt/FitsIOServer/fitstarray.cc

    r873 r874  
    107107    }
    108108  char type;
    109   if (strncmp( typeid(T).name(),"r_8",3)==0 || strncmp( typeid(T).name(),"double",6)==0 ) type='D';
     109  if ( typeid(T) == typeid(r_8) ) type='D';
    110110  else
    111     if (strncmp( typeid(T).name(),"r_4",3)==0 || strncmp( typeid(T).name(),"float",5)==0 )  type='E';
     111    if ( typeid(T) == typeid(r_4) )  type='E';
    112112    else
    113       if (strncmp( typeid(T).name(),"int_4",5)==0 || strncmp( typeid(T).name(),"int",3)==0 )  type='I';
     113      if ( typeid(T) == typeid(int_4) )  type='I';
    114114      else
    115115        {
Note: See TracChangeset for help on using the changeset viewer.