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.
crop_ontology_tool.h File Reference
#include "schema_term.h"
#include "dfw_field_trial_service_library.h"
#include "mongodb_tool.h"
#include "parameter.h"
#include "operation.h"
#include "dfw_field_trial_service_data.h"
#include "curl_tools.h"
Include dependency graph for crop_ontology_tool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  TermType {
  TT_TRAIT, TT_METHOD, TT_UNIT, TT_VARIABLE,
  TT_NUM_TYPES
}
 

Functions

SchemaTermGetCropOnotologySchemaTerm (const char *crop_ontology_term_s, TermType expected_type, TermType *found_type_p, MongoTool *mongo_p)
 
json_t * GetScaleClassAsJSON (const ScaleClass *class_p)
 
json_t * GetScaleClassAsEmbeddedJSON (const ScaleClass *class_p, const char *key_s)
 
const ScaleClassGetScaleClassFromJSON (const json_t *class_json_p)
 
OperationStatus StoreAllScaleUnits (FieldTrialServiceData *data_p)
 
const ScaleClassGetScaleClassByName (const char *const name_s)
 

Enumeration Type Documentation

◆ TermType

enum TermType
Enumerator
TT_TRAIT 
TT_METHOD 
TT_UNIT 
TT_VARIABLE 
TT_NUM_TYPES 

Function Documentation

◆ GetCropOnotologySchemaTerm()

SchemaTerm* GetCropOnotologySchemaTerm ( const char *  crop_ontology_term_s,
TermType  expected_type,
TermType found_type_p,
MongoTool mongo_p 
)

◆ GetScaleClassAsJSON()

json_t* GetScaleClassAsJSON ( const ScaleClass class_p)

◆ GetScaleClassAsEmbeddedJSON()

json_t* GetScaleClassAsEmbeddedJSON ( const ScaleClass class_p,
const char *  key_s 
)

◆ GetScaleClassFromJSON()

const ScaleClass* GetScaleClassFromJSON ( const json_t *  class_json_p)

◆ StoreAllScaleUnits()

OperationStatus StoreAllScaleUnits ( FieldTrialServiceData data_p)

◆ GetScaleClassByName()

const ScaleClass* GetScaleClassByName ( const char *const  name_s)