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.
field_trial_mongodb.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2018 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 /*
17  * field_trial_mongodb.h
18  *
19  * Created on: 12 Sep 2018
20  * Author: billy
21  */
22 
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_FIELD_TRIAL_MONGODB_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_FIELD_TRIAL_MONGODB_H_
25 
27 #include "field_trial.h"
28 
29 
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34 
35 
37 
38 
40 
41 
42 DFW_FIELD_TRIAL_SERVICE_LOCAL FieldTrial *GetFieldTrialFromMongoDB (const FieldTrialServiceData *data_p, const char *name_s, const char *team_s);
43 
44 
46 
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 
53 #endif /* SERVICES_FIELD_TRIALS_INCLUDE_FIELD_TRIAL_MONGODB_H_ */
GetFieldTrialsByTeamFromMongoDB
LinkedList * GetFieldTrialsByTeamFromMongoDB(const FieldTrialServiceData *data_p, const char *team_s)
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
FieldTrial
A datatype that represents a Field Trial that can contain one or more Studies.
Definition: field_trial.h:50
field_trial.h
LinkedList
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
dfw_field_trial_service_data.h
GetFieldTrialFromMongoDB
FieldTrial * GetFieldTrialFromMongoDB(const FieldTrialServiceData *data_p, const char *name_s, const char *team_s)
AddFieldTrialByNameToMongoDB
bool AddFieldTrialByNameToMongoDB(FieldTrialServiceData *data_p, FieldTrial *trial_p)
FieldTrialServiceData
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
GetFieldTrialsByNameFromMongoDB
LinkedList * GetFieldTrialsByNameFromMongoDB(const FieldTrialServiceData *data_p, const char *name_s)