Blame view

src/Common/OutputFormatTime.hh 1.52 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * OutputFormatTime.hh
 *
 *  Created on: 26 oct. 2012
 *      Author: AKKA IS
 */

#ifndef OUTPUTFORMATTIME_HH_
#define OUTPUTFORMATTIME_HH_

#include <map>
#include <string>

namespace AMDA {

/**
 * Define output down load time format
 */
enum OutputFormatTime {
69965318   Menouard AZIB   Changement git co...
20
	FORMAT_OUTPUT_TIME_DOYTIME, ///< DOYTIME
fbe3c2bb   Benjamin Renard   First commit
21
	FORMAT_OUTPUT_TIME_ISO, ///< ISO STYLE AAAA-MM-JJTHH:MM:ss.msd
b3096d5d   Hacene SI HADJ MOHAND   correcting time i...
22
                    FORMAT_OUTPUT_TIME_ISO_Z, ///< ISO STYLE AAAA-MM-JJTHH:MM:ss.msd
fbe3c2bb   Benjamin Renard   First commit
23
	FORMAT_OUTPUT_TIME_DOUBLE, ///< in second;  stating from 1970
5b387233   Vincent Cephirins   RM7926 - Evol - C...
24
25
        FORMAT_OUTPUT_TIME_SPACES, /// < YYYY MM DD hh mm ss
        FORMAT_OUTPUT_TIME_MS, /// < Double with milliseconds 
5a693c10   Erdogan Furkan   For now
26
27
28
        FORMAT_OUTPUT_TIME_EPOCH,  // CDF EPOCH
        FORMAT_OUTPUT_TIME_EPOCH16, // CDF EPOCH16
        FORMAT_OUTPUT_TIME_TT2000, // CDF TT2000
fbe3c2bb   Benjamin Renard   First commit
29
30
31
};

static std::map<OutputFormatTime,std::string> ouputFormatTimeToStr = {
e8595a44   Hacene SI HADJ MOHAND   J'ai corrigĂ© les ...
32
	{OutputFormatTime::FORMAT_OUTPUT_TIME_DOYTIME, "DOY TIME"},
fbe3c2bb   Benjamin Renard   First commit
33
	{OutputFormatTime::FORMAT_OUTPUT_TIME_ISO, "ISO 8601"},
5a693c10   Erdogan Furkan   For now
34
        {OutputFormatTime::FORMAT_OUTPUT_TIME_ISO_Z, "ISO 8601Z"},
31dbec88   Benjamin Renard   date spaces ok
35
	{OutputFormatTime::FORMAT_OUTPUT_TIME_DOUBLE, "Seconds from 1970"},
5a693c10   Erdogan Furkan   For now
36
37
38
39
40
        {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"},
fbe3c2bb   Benjamin Renard   First commit
41
42
43
44
};

} /* namespace AMDA */
#endif /* OUTPUTFORMATTIME_HH_ */