Main Page
Modules
Namespaces
Classes
Files
File List
File Members
sm
apps
test_json_ld.c
Go to the documentation of this file.
1
#include "../csm/csm_all.h"
2
3
int
main
() {
4
JO
jo;
/* the monkey */
5
LDP
ld;
6
7
while
((jo =
json_read_stream
(stdin))) {
8
if
(!(ld =
json_to_ld
(jo))) {
9
fprintf(stderr,
"Could not transform to laser_data:\n\n"
);
10
fprintf(stderr,
"-----\n"
);
11
fprintf(stderr,
"%s"
,
json_object_to_json_string
(jo));
12
fprintf(stderr,
"-----\n"
);
13
continue
;
14
}
15
16
jo =
ld_to_json
(ld);
17
printf(
"%s"
,
json_object_to_json_string
(jo));
18
printf(
"\n"
);
19
}
20
21
return
0;
22
}
json_to_ld
LDP json_to_ld(JO jo)
Definition:
laser_data_json.c:170
main
int main()
Definition:
test_json_ld.c:3
json_object_to_json_string
const char * json_object_to_json_string(struct json_object *this)
Definition:
json_object.c:199
ld_to_json
JO ld_to_json(LDP ld)
Definition:
laser_data_json.c:134
laser_data
Definition:
laser_data.h:16
json_read_stream
JO json_read_stream(FILE *f)
Definition:
json_more_utils.c:48
json_object
Definition:
json_object_private.h:21
csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23