1)
{
_outputFile << "x";
_outputFile << _fieldInfoMap[paramId].dimSize2;
}
}
_outputFile << "\"";
_outputFile << "/>" << std::endl;
}
void FileWriterASCIIVOTable::writeBeginData(void)
{
if (!_outputFile.is_open())
return;
_outputFile << " " << std::endl;
_outputFile << " " << std::endl;
}
void FileWriterASCIIVOTable::writeEndData(void)
{
if (!_outputFile.is_open())
return;
_outputFile << " " << std::endl;
_outputFile << " " << std::endl;
}
void FileWriterASCIIVOTable::writeDataRecord(std::string record)
{
if (!_outputFile.is_open())
return;
_outputFile << " " << std::endl;
_outputFile << record << std::endl;
_outputFile << "
" << std::endl;
}
std::string FileWriterASCIIVOTable::getDataStartTag(bool isTimeData)
{
if (isTimeData)
return " ";
return " | ";
}
std::string FileWriterASCIIVOTable::getDataStopTag(void)
{
return " | ";
}
std::string FileWriterASCIIVOTable::getDataValueSeparator(void)
{
return " ";
}
bool FileWriterASCIIVOTable::writeTimeData(std::string paramId, double data, OutputFormatTime /*timeFormat*/, bool isFirstParam)
{
//force ISO format for time field
if (!isFirstParam)
return true; //time already write for this record, no error
std::fstream *crtFile = _fieldInfoMap[paramId].file;
if (crtFile == NULL)
return false;
(*crtFile) << getDataStartTag(true);
TimeUtil::formatTimeDateInIso(data, *crtFile);
(*crtFile) << "Z";
(*crtFile) << getDataStopTag();
return true;
}
} /* namespace FileWriter */
} /* namespace Download */
} /* namespace ParamOutputImpl */
} /* namespace AMDA */