Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
json_processor.h File Reference
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "jansson.h"
Include dependency graph for json_processor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  JSONProcessor
 

Functions

void InitialiseJSONProcessor (struct JSONProcessor *processor_p, json_t *(*process_plot_json_fn)(struct JSONProcessor *processor_p, struct Plot *plot_p, ViewFormat format, const FieldTrialServiceData *service_data_p), json_t *(*process_row_json_fn)(struct JSONProcessor *processor_p, struct Row *row_p, ViewFormat format, const FieldTrialServiceData *service_data_p), void(*free_fn)(struct JSONProcessor *processor_p))
 
void FreeJSONProcessor (struct JSONProcessor *processor_p)
 
json_t * ProcessPlotJSON (struct JSONProcessor *processor_p, struct Plot *plot_p, ViewFormat format, const FieldTrialServiceData *service_data_p)
 
json_t * ProcessRowJSON (struct JSONProcessor *processor_p, struct Row *row_p, ViewFormat format, const FieldTrialServiceData *service_data_p)
 

Function Documentation

◆ InitialiseJSONProcessor()

void InitialiseJSONProcessor ( struct JSONProcessor processor_p,
json_t *(*)(struct JSONProcessor *processor_p, struct Plot *plot_p, ViewFormat format, const FieldTrialServiceData *service_data_p)  process_plot_json_fn,
json_t *(*)(struct JSONProcessor *processor_p, struct Row *row_p, ViewFormat format, const FieldTrialServiceData *service_data_p)  process_row_json_fn,
void(*)(struct JSONProcessor *processor_p)  free_fn 
)

◆ FreeJSONProcessor()

void FreeJSONProcessor ( struct JSONProcessor processor_p)

◆ ProcessPlotJSON()

json_t* ProcessPlotJSON ( struct JSONProcessor processor_p,
struct Plot plot_p,
ViewFormat  format,
const FieldTrialServiceData service_data_p 
)

◆ ProcessRowJSON()

json_t* ProcessRowJSON ( struct JSONProcessor processor_p,
struct Row row_p,
ViewFormat  format,
const FieldTrialServiceData service_data_p 
)