Changeset 17661
- Timestamp:
- 04/07/14 15:01:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mfileio/MWriteFitsFile.cc
r17559 r17661 4 4 #include "MArrayS.h" 5 5 #include "MArrayB.h" 6 #include "MArrayF.h" 6 7 7 8 #include "MRead.h" … … 888 889 if (strncmp(dataMember->GetTrueTypeName(), "MArray", 6) == 0) 889 890 { 890 // MArrayHelperBase * clHelper;891 891 if (strcmp(dataMember->GetTrueTypeName(), "MArrayS*") == 0) 892 892 { 893 typeName = "UShort_t"; 894 arraySize = (*((MArrayS**)((char*)baseAdr + dataMember->GetOffset())))->GetSize(); 895 InitSingleColumn(tableName, 893 typeName = "UShort_t"; 894 arraySize = (*((MArrayS**)((char*)baseAdr + dataMember->GetOffset())))->GetSize(); 895 InitSingleColumn(tableName, 896 arraySize, 897 typeName.Data(), 898 (char*)(*((MArrayS**)((char*)baseAdr + dataMember->GetOffset())))->GetArray(), 899 colName.Data(), 900 unit, 901 comment); 902 } 903 else if (strcmp(dataMember->GetTrueTypeName(), "MArrayB*") == 0) 904 { 905 typeName = "UChar_t"; 906 arraySize = (*((MArrayB**)((char*)baseAdr + dataMember->GetOffset())))->GetSize(); 907 InitSingleColumn(tableName, 896 908 arraySize, 897 909 typeName.Data(), 898 (char*)(*((MArray S**)((char*)baseAdr + dataMember->GetOffset())))->GetArray(),910 (char*)(*((MArrayB**)((char*)baseAdr + dataMember->GetOffset())))->GetArray(), 899 911 colName.Data(), 900 912 unit, 901 913 comment); 902 914 } 903 else 915 else if (strcmp(dataMember->GetTrueTypeName(), "MArrayF*") == 0) 904 916 { 905 if (strcmp(dataMember->GetTrueTypeName(), "MArrayB*") == 0) 906 { 907 typeName = "UChar_t"; 908 arraySize = (*((MArrayB**)((char*)baseAdr + dataMember->GetOffset())))->GetSize(); 917 typeName = "TFloat_t"; 918 arraySize = (*((MArrayF**)((char*)baseAdr + dataMember->GetOffset())))->GetSize(); 909 919 InitSingleColumn(tableName, 910 arraySize, 911 typeName.Data(), 912 (char*)(*((MArrayB**)((char*)baseAdr + dataMember->GetOffset())))->GetArray(), 913 colName.Data(), 914 unit, 915 comment); 916 } 917 else 918 { 919 *fLog << err << dataMember->GetTrueTypeName() << " not yet implemented." << endl; 920 return kFALSE; 921 } 920 arraySize, 921 typeName.Data(), 922 (char*)(*((MArrayF**)((char*)baseAdr + dataMember->GetOffset())))->GetArray(), 923 colName.Data(), 924 unit, 925 comment); 922 926 } 923 927 924 continue; 928 else { 929 *fLog << err << dataMember->GetTrueTypeName() << " not yet implemented." << endl; 930 return kFALSE; 931 } 932 933 934 continue; 925 935 } 926 936 else if (strcmp(dataMember->GetTrueTypeName(), "TClonesArray") == 0)
Note:
See TracChangeset
for help on using the changeset viewer.