json_journal.h
Go to the documentation of this file.
1 #ifndef H_JSON_JOURNAL
2 #define H_JSON_JOURNAL
3 
4 #include <stdio.h>
5 
6 #include <json-c/json.h>
8 
9 #include "laser_data_json.h"
10 
11 
21  #define JJ jj_enabled()
22  int jj_enabled(void);
23 
24  void jj_context_enter(const char*context_name);
25  void jj_context_exit(void);
26 
27  void jj_loop_enter(const char*loop_name);
28  void jj_loop_iteration(void);
29  void jj_loop_exit(void);
30 
31  void jj_add_int(const char*name, int);
32  void jj_add_double(const char*name, double);
33  void jj_add_double_array(const char*name, double*,int);
34  void jj_add_int_array(const char*name, int*,int);
35  void jj_add(const char*name, JO);
36 
37  void jj_set_stream(FILE*);
38  FILE* jj_get_stream(void);
39 
40 /**** Private functions */
41 
43  JO jj_stack_top(void);
45  void jj_stack_push(JO jo);
46  void jj_stack_pop(void);
48  void jj_must_be_hash(void);
50  void jj_must_be_array(void);
51 
52 
53 #endif
void jj_add_int(const char *name, int)
Definition: json_journal.c:86
void jj_context_enter(const char *context_name)
Definition: json_journal.c:36
void jj_stack_pop(void)
Definition: json_journal.c:26
void jj_set_stream(FILE *)
Definition: json_journal.c:109
void jj_loop_iteration(void)
Definition: json_journal.c:68
JO jj_stack_top(void)
Definition: json_journal.c:16
void jj_add_double_array(const char *name, double *, int)
Definition: json_journal.c:96
void jj_stack_push(JO jo)
Definition: json_journal.c:21
FILE * jj_get_stream(void)
Definition: json_journal.c:113
void jj_loop_exit(void)
Definition: json_journal.c:78
void jj_loop_enter(const char *loop_name)
Definition: json_journal.c:61
int jj_enabled(void)
Definition: json_journal.c:12
const char * name
Definition: options.h:51
void jj_must_be_array(void)
Definition: json_journal.c:52
void jj_add_double(const char *name, double)
Definition: json_journal.c:91
void jj_add_int_array(const char *name, int *, int)
Definition: json_journal.c:100
void jj_context_exit(void)
Definition: json_journal.c:56
void jj_add(const char *name, JO)
Definition: json_journal.c:104
void jj_must_be_hash(void)
Definition: json_journal.c:48


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23