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.
gene_bank.h File Reference
#include "dfw_field_trial_service_library.h"
#include "dfw_field_trial_service_data.h"
#include "typedefs.h"
#include "jansson.h"
Include dependency graph for gene_bank.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GeneBank
 

Functions

const GENE_BANK_PREFIX char *GB_NAME_S GENE_BANK_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
 
const GENE_BANK_PREFIX char *GB_URL_S GENE_BANK_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "url")
 
const GENE_BANK_PREFIX char *GB_API_URL_S GENE_BANK_VAL ("api_url")
 
GeneBankAllocateGeneBank (bson_oid_t *id_p, const char *name_s, const char *url_s, const char *api_url_s)
 
void FreeGeneBank (GeneBank *germplasm_p)
 
json_t * GetGeneBankAsJSON (const GeneBank *gene_bank_p, const ViewFormat format, const char *const api_query_s)
 
GeneBankGetGeneBankFromJSON (const json_t *germplasm_json_p)
 
bool SaveGeneBank (GeneBank *gene_bank_p, FieldTrialServiceData *data_p)
 
GeneBankGetGeneBankById (const bson_oid_t *id_p, const ViewFormat format, const FieldTrialServiceData *data_p)
 
GeneBankGetGeneBankByIdString (const char *gene_bank_id_s, const ViewFormat format, const FieldTrialServiceData *data_p)
 
GeneBankGetGeneBankByName (const char *name_s, const FieldTrialServiceData *data_p)
 

Function Documentation

◆ GENE_BANK_CONCAT_VAL() [1/2]

const GENE_BANK_PREFIX char* GB_NAME_S GENE_BANK_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"name"   
)

◆ GENE_BANK_CONCAT_VAL() [2/2]

const GENE_BANK_PREFIX char* GB_URL_S GENE_BANK_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"url"   
)

◆ GENE_BANK_VAL()

const GENE_BANK_PREFIX char* GB_API_URL_S GENE_BANK_VAL ( "api_url"  )

◆ AllocateGeneBank()

GeneBank* AllocateGeneBank ( bson_oid_t *  id_p,
const char *  name_s,
const char *  url_s,
const char *  api_url_s 
)

◆ FreeGeneBank()

void FreeGeneBank ( GeneBank germplasm_p)

◆ GetGeneBankAsJSON()

json_t* GetGeneBankAsJSON ( const GeneBank gene_bank_p,
const ViewFormat  format,
const char *const  api_query_s 
)

◆ GetGeneBankFromJSON()

GeneBank* GetGeneBankFromJSON ( const json_t *  germplasm_json_p)

◆ SaveGeneBank()

bool SaveGeneBank ( GeneBank gene_bank_p,
FieldTrialServiceData data_p 
)

◆ GetGeneBankById()

GeneBank* GetGeneBankById ( const bson_oid_t *  id_p,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ GetGeneBankByIdString()

GeneBank* GetGeneBankByIdString ( const char *  gene_bank_id_s,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ GetGeneBankByName()

GeneBank* GetGeneBankByName ( const char *  name_s,
const FieldTrialServiceData data_p 
)