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.
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
Files
File List
Globals
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
Variables
a
b
c
d
f
m
p
r
s
Typedefs
Enumerations
a
b
c
d
f
h
l
m
o
p
q
r
s
t
v
Enumerator
a
b
c
d
f
h
l
m
o
p
q
r
s
t
v
Macros
a
b
c
d
e
f
g
i
l
m
p
r
s
t
u
w
sample_metadata.h
Go to the documentation of this file.
1
/*
2
** Copyright 2014-2016 The Earlham Institute
3
**
4
** Licensed under the Apache License, Version 2.0 (the "License");
5
** you may not use this file except in compliance with the License.
6
** You may obtain a copy of the License at
7
**
8
** http://www.apache.org/licenses/LICENSE-2.0
9
**
10
** Unless required by applicable law or agreed to in writing, software
11
** distributed under the License is distributed on an "AS IS" BASIS,
12
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
** See the License for the specific language governing permissions and
14
** limitations under the License.
15
*/
16
21
/*
22
* sample_metadata.h
23
*
24
* Created on: 1 Jul 2015
25
* Author: tyrrells
26
*/
27
28
#ifndef SAMPLE_METADATA_H_
29
#define SAMPLE_METADATA_H_
30
31
32
#include "
pathogenomics_service_library.h
"
33
#include "
pathogenomics_service_data.h
"
34
35
#include "
pathogenomics_service.h
"
36
37
#ifdef __cplusplus
38
extern
"C"
39
{
40
#endif
41
42
43
44
PATHOGENOMICS_SERVICE_LOCAL
bool
GetLocationData (json_t *row_p,
const
char
*
const
id_s,
GrassrootsServer
*grassroots_p);
45
46
47
57
PATHOGENOMICS_SERVICE_LOCAL
bool
ConvertDate (json_t *row_p);
58
59
60
61
62
PATHOGENOMICS_SERVICE_LOCAL
bool
RefineLocationDataForOpenCage (
PathogenomicsServiceData
*service_data_p, json_t *row_p,
const
json_t *raw_data_p,
const
char
*
const
town_s,
const
char
*
const
county_s);
63
64
65
PATHOGENOMICS_SERVICE_LOCAL
const
char
*InsertSampleData (
MongoTool
*tool_p, json_t *values_p,
const
uint32 stage_time,
PathogenomicsServiceData
*data_p);
66
67
68
PATHOGENOMICS_SERVICE_LOCAL
bool
CheckSampleData (
const
LinkedList
*headers_p,
ServiceJob
*job_p,
PathogenomicsServiceData
*data_p);
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
75
#endif
/* SAMPLE_METADATA_H_ */
pathogenomics_service_data.h
ServiceJob
A datatype to represent a running task.
Definition:
service_job.h:72
pathogenomics_service.h
MongoTool
A MongoTool is a datatype that allows access to the data stored within a MongoDB instance.
Definition:
mongodb_tool.h:159
PATHOGENOMICS_SERVICE_LOCAL
#define PATHOGENOMICS_SERVICE_LOCAL
Definition:
pathogenomics_service_library.h:42
LinkedList
A doubly-linked list that can be traversed in either direction.
Definition:
linked_list.h:56
GrassrootsServer
Definition:
grassroots_server.h:45
pathogenomics_service_library.h
PathogenomicsServiceData
The configuration data used by the Pathogenomics Service.
Definition:
pathogenomics_service_data.h:54
services
field-pathogenomics
include
sample_metadata.h
Generated on Mon Feb 26 2024 17:00:10 for Grassroots Infrastructure by
1.8.16