OutputFormatTime.hh 758 Bytes
/**
 * 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 {
	FORMAT_OUTPUT_TIME_DD, ///< DD_server style
	FORMAT_OUTPUT_TIME_ISO, ///< ISO STYLE AAAA-MM-JJTHH:MM:ss.msd
	FORMAT_OUTPUT_TIME_DOUBLE, ///< in second;  stating from 1970
};

static std::map<OutputFormatTime,std::string> ouputFormatTimeToStr = {
	{OutputFormatTime::FORMAT_OUTPUT_TIME_DD, "DD Time"},
	{OutputFormatTime::FORMAT_OUTPUT_TIME_ISO, "ISO 8601"},
	{OutputFormatTime::FORMAT_OUTPUT_TIME_DOUBLE, "Seconds from 1970"}
};

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