FACT++  1.0
vector< string > Converter::GetFitsFormat ( ) const

Definition at line 1042 of file Converter.cc.

References fList.

Referenced by GetSize().

1043 {
1044  //we've got a nice structure describing the format of this service's messages.
1045  //Let's create the appropriate FITS columns
1046  vector<string> vec;
1047  for (FormatList::const_iterator it=fList.begin(); it!=fList.end(); it++)
1048  {
1049  ostringstream dataQualifier;
1050  dataQualifier << it->second.first;
1051 
1052  switch (it->first.first->name()[0])
1053  {
1054  case 'c': dataQualifier << 'B'; break;
1055  case 's': dataQualifier << 'I'; break;
1056  case 'i': dataQualifier << 'J'; break;
1057  case 'l': dataQualifier << 'J'; break;
1058  case 'f': dataQualifier << 'E'; break;
1059  case 'd': dataQualifier << 'D'; break;
1060  case 'x': dataQualifier << 'K'; break;
1061  case 'v':
1062  case 'S': //we skip the variable length strings
1063  case 'N':
1064  continue;
1065 
1066  default:
1067  throw runtime_error(string("GetFitsFormat - unknown FITS format [")+it->first.first->name()[0]+"]");
1068  };
1069 
1070  vec.push_back(dataQualifier.str());
1071  }
1072 
1073  return vec;
1074 }
const FormatList fList
Original format string.
Definition: Converter.h:33

+ Here is the caller graph for this function: