-
Notifications
You must be signed in to change notification settings - Fork 1
/
json.h
29 lines (22 loc) · 792 Bytes
/
json.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdlib.h>
#include <stdio.h>
#include <json.h>
#include "adaboost.h"
#ifndef JSON_H_
#define JSON_H_
// jsonw.c
int writeJson(json_object* json);
void dbErase();
void dbInsert(StrongClassifier *strongClass);
json_object* weakClassifierToJson(WeakClassifier *weakClass);
json_object* classifierListToJson(ClassifierList *classList);
json_object* strongClassifierToJson(StrongClassifier *strongClass);
json_object* strongClassifierListToJson(SCList *classList);
// jsonr.c
char* readJson();
SCList* dbExtract();
SCList* jsonToStrongClassifierList(json_object* jStrongList);
StrongClassifier jsonToStrongClassifier(json_object *jStrongClass);
ClassifierList* jsonToWeakClassifierList(json_object *jWeakList);
WeakClassifier jsonToWeakClassifier(json_object *jWeakClass);
#endif