Commit 359db425 authored by Mathieu Giraud's avatar Mathieu Giraud

output.{h,cpp}: setSeg()

See #3358.
parent 3a9c161e
......@@ -12,6 +12,11 @@ void CloneOutput::set(string key, string subkey, json val)
j[key][subkey] = val ;
}
void CloneOutput::setSeg(string subkey, json val)
{
set(KEY_SEG, subkey, val);
}
void CloneOutput::add_warning(string code, string msg, string level)
{
json_add_warning(j, code, msg, level);
......
......@@ -7,7 +7,6 @@
#include "tools.h"
#include "../lib/json.hpp"
#define KEY_SEG "seg"
using namespace std;
......@@ -21,6 +20,7 @@ private:
public:
void set(string key, json val);
void set(string key, string subkey, json val);
void setSeg(string subkey, json val);
void add_warning(string code, string msg, string level);
json toJson();
......
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