Changeset 11028 for trunk/FACT++/src
- Timestamp:
- 06/15/11 11:01:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/dataLogger.cc
r11016 r11028 2028 2028 //we've got a nice structure describing the format of this service's messages. 2029 2029 //Let's create the appropriate FITS columns 2030 int size = sub.dimInfo->getSize();2030 int size = 0; 2031 2031 2032 2032 vector<string> dataFormatsLocal; … … 2038 2038 switch (flist[i].first.first->name()[0]) 2039 2039 { 2040 case 'c': 2041 case 'C': 2042 dataQualifier.str("S"); 2043 break; 2044 case 's': 2045 dataQualifier << "I"; 2046 break; 2047 case 'i': 2048 case 'I': 2049 dataQualifier << "J"; 2050 break; 2051 case 'l': 2052 case 'L': 2053 dataQualifier << "J"; 2054 break; 2055 case 'f': 2056 case 'F': 2057 dataQualifier << "E"; 2058 break; 2059 case 'd': 2060 case 'D': 2061 dataQualifier << "D"; 2062 break; 2063 case 'x': 2064 case 'X': 2065 dataQualifier << "K"; 2066 break; 2067 case 'S': 2068 size--; 2069 //for strings, the number of elements I get is wrong. Correct it 2070 dataQualifier.str(""); //clear 2071 dataQualifier << size << "A"; 2072 break; 2073 2074 default: 2075 Fatal("THIS SHOULD NEVER BE REACHED. dataLogger.cc ln 1198."); 2040 case 'c': dataQualifier << "B"; break; // FIXME: To be checked! 2041 case 's': dataQualifier << "I"; break; 2042 case 'i': dataQualifier << "J"; break; 2043 case 'l': dataQualifier << "J"; break; 2044 case 'f': dataQualifier << "E"; break; 2045 case 'd': dataQualifier << "D"; break; 2046 case 'x': dataQualifier << "K"; break; 2047 case 'S': //we skip the variable length strings 2048 continue; 2049 2050 default: 2051 Fatal("THIS SHOULD NEVER BE REACHED."); 2076 2052 }; 2077 //we skip the variable length strings for now (in fits only) 2078 if (dataQualifier.str() != "S")2079 2053 2054 size += flist[i].first.second * flist[i].second.first; 2055 dataFormatsLocal.push_back(dataQualifier.str()); 2080 2056 } 2081 2057 sub.nightlyFile.InitDataColumns(GetDescription(sub.server, sub.service), dataFormatsLocal, sub.dimInfo->getData(), size);
Note:
See TracChangeset
for help on using the changeset viewer.