Commit 2673d761 authored by Mathieu Giraud's avatar Mathieu Giraud

core/output.{h,cpp}: getWarnings()

parent ee4d4625
......@@ -65,6 +65,18 @@ int CloneOutput::reads()
return j["reads"][0];
}
string CloneOutput::getWarnings()
{
string warnings = "" ;
if (!j.count("warn")) return warnings ;
for (json w: j["warn"])
{
warnings += w["code"].get<std::string>() + " ";
}
}
CloneOutput::~CloneOutput()
{
......
......@@ -37,6 +37,7 @@ public:
virtual ~CloneOutput();
int reads();
string getWarnings();
void setSeg(string subkey, json val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment