/** * OutputFormatTime.hh * * Created on: 26 oct. 2012 * Author: AKKA IS */ #ifndef OUTPUTFORMATTIME_HH_ #define OUTPUTFORMATTIME_HH_ #include #include namespace AMDA { /** * Define output down load time format */ enum OutputFormatTime { FORMAT_OUTPUT_TIME_DOYTIME, ///< DOYTIME FORMAT_OUTPUT_TIME_ISO, ///< ISO STYLE AAAA-MM-JJTHH:MM:ss.msd FORMAT_OUTPUT_TIME_ISO_Z, ///< ISO STYLE AAAA-MM-JJTHH:MM:ss.msd FORMAT_OUTPUT_TIME_DOUBLE, ///< in second; stating from 1970 FORMAT_OUTPUT_TIME_SPACES, /// < YYYY MM DD hh mm ss FORMAT_OUTPUT_TIME_MS, /// < Double with milliseconds FORMAT_OUTPUT_TIME_EPOCH, // CDF EPOCH FORMAT_OUTPUT_TIME_EPOCH16, // CDF EPOCH16 FORMAT_OUTPUT_TIME_TT2000, // CDF TT2000 }; static std::map ouputFormatTimeToStr = { {OutputFormatTime::FORMAT_OUTPUT_TIME_DOYTIME, "DOY TIME"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_ISO, "ISO 8601"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_ISO_Z, "ISO 8601Z"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_DOUBLE, "Seconds from 1970"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_SPACES, "YYYY MM DD hh mm ss"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_MS, "Seconds from 1970, milliseconds"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_EPOCH, "CDF EPOCH"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_EPOCH16, "CDF EPOCH16"}, {OutputFormatTime::FORMAT_OUTPUT_TIME_TT2000, "CDF TT2000"}, }; } /* namespace AMDA */ #endif /* OUTPUTFORMATTIME_HH_ */