From dbf63ed8465ed64756fc49d54830f9a8a3372a61 Mon Sep 17 00:00:00 2001 From: "Brian P. Walenz" Date: Tue, 12 Feb 2019 01:04:10 -0500 Subject: [PATCH] Add toString(sqRead_version). --- src/stores/sqRead.H | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/stores/sqRead.H b/src/stores/sqRead.H index 059acb955..39c917bd3 100644 --- a/src/stores/sqRead.H +++ b/src/stores/sqRead.H @@ -55,6 +55,19 @@ sqRead_setDefaultVersion(sqRead_version v) { sqRead_defaultVersion = v; }; +inline +const char * +toString(sqRead_version v) { + switch (v) { + case sqRead_latest: return("latest"); break; + case sqRead_raw: return("raw"); break; + case sqRead_corrected: return("corrected"); break; + case sqRead_trimmed: return("trimmed"); break; + } + + return("unknown"); +} + class sqRead;