Adds first version of Assay's materialization in a JSON format

That format will be used by the audit logs.
This commit is contained in:
Felipe Zimmerle
2015-07-08 19:22:43 -03:00
parent 610b10bcd5
commit aa8dc9115b
8 changed files with 145 additions and 15 deletions

View File

@@ -15,8 +15,6 @@
#include "src/audit_log.h"
#include <yajl/yajl_tree.h>
#include <yajl/yajl_gen.h>
#include <stddef.h>
#include <stdio.h>
#include <ctype.h>
@@ -150,7 +148,7 @@ bool AuditLog::saveIfRelevant(Assay *assay) {
return true;
}
std::string log = logfy(assay);
std::string log = assay->to_json(0);
m_writer->write(log);
@@ -158,12 +156,6 @@ bool AuditLog::saveIfRelevant(Assay *assay) {
}
std::string AuditLog::logfy(Assay *assay) {
std::string log("ops");
return log;
}
bool AuditLog::close() {
return true;
}