aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edi/PFT.hpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 10:14:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 10:14:45 +0100
commit0f9f51279b77fecc1d8c9ea8fe0fc62d8e945645 (patch)
treed23947320efe789e351a2ebd288c96a23095d3ec /lib/edi/PFT.hpp
parentc74279c0af306e2fb4a1f03b0a698fb239f4c33b (diff)
downloaddabmod-0f9f51279b77fecc1d8c9ea8fe0fc62d8e945645.tar.gz
dabmod-0f9f51279b77fecc1d8c9ea8fe0fc62d8e945645.tar.bz2
dabmod-0f9f51279b77fecc1d8c9ea8fe0fc62d8e945645.zip
Update edi code from edilib
Diffstat (limited to 'lib/edi/PFT.hpp')
-rw-r--r--lib/edi/PFT.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/edi/PFT.hpp b/lib/edi/PFT.hpp
index 9b65d2e..1a2f617 100644
--- a/lib/edi/PFT.hpp
+++ b/lib/edi/PFT.hpp
@@ -83,6 +83,15 @@ class AFBuilder
no, // Not enough fragments present to permit RS
};
+ static std::string dar_to_string(decode_attempt_result_t dar) {
+ switch (dar) {
+ case decode_attempt_result_t::yes: return "y";
+ case decode_attempt_result_t::no: return "n";
+ case decode_attempt_result_t::maybe: return "m";
+ }
+ return "?";
+ }
+
AFBuilder(pseq_t Pseq, findex_t Fcount, size_t lifetime);
void pushPFTFrag(const Fragment &frag);
@@ -101,6 +110,8 @@ class AFBuilder
return {_fragments.size(), _Fcount};
}
+ std::string visualise(void) const;
+
/* The user of this instance can keep track of the lifetime of this
* builder
*/