Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ project( metkit LANGUAGES CXX C )

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
# set(CMAKE_CXX_FLAGS "-Wall -Wextra -pedantic")
# add_compile_options(-fsanitize=address)
# add_compile_options(-fsanitize=address,undefined -fno-omit-frame-pointer)
# add_link_options(-fsanitize=address)


########################################################################################################################
### dependencies and options
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1
1.15.2
9 changes: 8 additions & 1 deletion src/metkit/codes/CodesDecoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "eckit/exception/Exceptions.h"
#include "eckit/message/Decoder.h"
#include "eckit/message/Message.h"

#include "eckit/utils/Translator.h"

namespace metkit::codes {

Expand All @@ -32,6 +32,13 @@ class CodesDecoder : public eckit::message::MessageDecoder {
void decodeKey(codes_handle* h, codes_keys_iterator* it, const char* name, eckit::message::MetadataGatherer& gather,
const eckit::message::GetMetadataOptions& options) const {

std::string keyword(name);

if (keyword == "levelist") {
eckit::Translator<double, std::string> t;
gather.setValue(name, t(static_cast<const DERIVED*>(this)->getDouble(h, it, name)));
return;
}
if (options.valueRepresentation == eckit::message::ValueRepresentation::String) {
decodeString(h, it, gather, name);
}
Expand Down
Loading