14 #ifndef odc_ODATranslator_H
15 #define odc_ODATranslator_H
17 #include "eckit/eckit.h"
18 #include "eckit/utils/Translator.h"
19 #include "eckit/types/Date.h"
20 #include "eckit/types/Time.h"
33 eckit::Log::debug() <<
"ODATranslator<std::string>::operator()(double n=" << n <<
") => " << r << std::endl;
42 static const char * zeroes =
"000000";
44 std::string t (eckit::Translator<double, std::string>()(n));
46 t = std::string(zeroes + t.size()) + t;
49 eckit::Log::debug() <<
"ODATranslator<Time>::operator()(double n=" << n <<
") => " << tm << std::endl;
58 static const char * zeroes (
"000000");
60 std::string t (eckit::Translator<long, std::string>()(n));
62 t = std::string(zeroes + t.size()) + t;
65 eckit::Log::debug() <<
"ODATranslator<Date>::operator()(double n=" << n <<
") => " <<
d << std::endl;
std::string operator()(double n)