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.
|
Go to the source code of this file.
Data Structures | |
struct | Location |
struct | LocationNode |
Enumerations | |
enum | LocationType { LT_UNKNOWN, LT_FARM, LT_SITE, LT_NUM_TYPES } |
Functions | |
const LOCATION_PREFIX char *LO_ADDRESS_S | LOCATION_VAL ("address") |
const LOCATION_PREFIX char *LO_ORDER_S | LOCATION_VAL ("order") |
const LOCATION_PREFIX char *LO_NAME_S | LOCATION_VAL ("name") |
const LOCATION_PREFIX char *LO_SOIL_S | LOCATION_VAL ("soil") |
const LOCATION_PREFIX char *LO_MIN_PH_S | LOCATION_VAL ("min_ph") |
const LOCATION_PREFIX char *LO_MAX_PH_S | LOCATION_VAL ("max_ph") |
const LOCATION_PREFIX char *LO_TYPE_S | LOCATION_VAL ("type") |
const LOCATION_PREFIX char *LT_FARM_S | LOCATION_VAL ("farm") |
const LOCATION_PREFIX char *LT_SITE_S | LOCATION_VAL ("site") |
const LOCATION_PREFIX char *LT_UNKNOWN_S | LOCATION_VAL ("unknown") |
Location * | AllocateLocation (Address *address_p, const uint32 order, const char *soil_s, const double64 *min_ph_p, const double64 *max_ph_p, const LocationType loc_type, bson_oid_t *id_p) |
void | FreeLocation (Location *location_p) |
LocationNode * | AllocateLocationNode (Location *location_p) |
void | FreeLocationNode (ListItem *node_p) |
json_t * | GetLocationAsJSON (Location *location_p) |
Location * | GetLocationFromJSON (const json_t *location_json_p, const FieldTrialServiceData *data_p) |
char * | GetLocationAsString (const Location *location_p) |
Location * | GetLocationById (bson_oid_t *id_p, const ViewFormat format, const FieldTrialServiceData *data_p) |
Location * | GetLocationByIdString (const char *location_id_s, const ViewFormat format, const FieldTrialServiceData *data_p) |
Location * | GetUniqueLocationBySearchString (const char *location_s, const ViewFormat format, const FieldTrialServiceData *data_p) |
LinkedList * | GetLocationsByName (FieldTrialServiceData *data_p, const char *location_s) |
OperationStatus | SaveLocation (Location *location_p, ServiceJob *job_p, FieldTrialServiceData *data_p) |
const char * | GetLocationTypeAsString (const LocationType loc_type) |
bool | GetLocationTypeFromString (const char *loc_type_s, LocationType *loc_type_p) |
enum LocationType |
const LOCATION_PREFIX char* LO_ADDRESS_S LOCATION_VAL | ( | "address" | ) |
const LOCATION_PREFIX char* LO_ORDER_S LOCATION_VAL | ( | "order" | ) |
const LOCATION_PREFIX char* LO_NAME_S LOCATION_VAL | ( | "name" | ) |
const LOCATION_PREFIX char* LO_SOIL_S LOCATION_VAL | ( | "soil" | ) |
const LOCATION_PREFIX char* LO_MIN_PH_S LOCATION_VAL | ( | "min_ph" | ) |
const LOCATION_PREFIX char* LO_MAX_PH_S LOCATION_VAL | ( | "max_ph" | ) |
const LOCATION_PREFIX char* LO_TYPE_S LOCATION_VAL | ( | "type" | ) |
const LOCATION_PREFIX char* LT_FARM_S LOCATION_VAL | ( | "farm" | ) |
const LOCATION_PREFIX char* LT_SITE_S LOCATION_VAL | ( | "site" | ) |
const LOCATION_PREFIX char* LT_UNKNOWN_S LOCATION_VAL | ( | "unknown" | ) |
Location* AllocateLocation | ( | Address * | address_p, |
const uint32 | order, | ||
const char * | soil_s, | ||
const double64 * | min_ph_p, | ||
const double64 * | max_ph_p, | ||
const LocationType | loc_type, | ||
bson_oid_t * | id_p | ||
) |
void FreeLocation | ( | Location * | location_p | ) |
LocationNode* AllocateLocationNode | ( | Location * | location_p | ) |
void FreeLocationNode | ( | ListItem * | node_p | ) |
json_t* GetLocationAsJSON | ( | Location * | location_p | ) |
Location* GetLocationFromJSON | ( | const json_t * | location_json_p, |
const FieldTrialServiceData * | data_p | ||
) |
char* GetLocationAsString | ( | const Location * | location_p | ) |
Location* GetLocationById | ( | bson_oid_t * | id_p, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
Location* GetLocationByIdString | ( | const char * | location_id_s, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
Location* GetUniqueLocationBySearchString | ( | const char * | location_s, |
const ViewFormat | format, | ||
const FieldTrialServiceData * | data_p | ||
) |
LinkedList* GetLocationsByName | ( | FieldTrialServiceData * | data_p, |
const char * | location_s | ||
) |
OperationStatus SaveLocation | ( | Location * | location_p, |
ServiceJob * | job_p, | ||
FieldTrialServiceData * | data_p | ||
) |
const char* GetLocationTypeAsString | ( | const LocationType | loc_type | ) |
bool GetLocationTypeFromString | ( | const char * | loc_type_s, |
LocationType * | loc_type_p | ||
) |