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.
country_codes.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
#ifndef COUNTRY_CODES_H
22
#define COUNTRY_CODES_H
23
24
#include "
grassroots_geocoder_library.h
"
25
26
#include "
typedefs.h
"
27
28
typedef
struct
CountryCode CountryCode;
29
34
struct
CountryCode
35
{
36
const
char
*cc_name_s;
37
const
char
*cc_code_s;
38
};
39
40
41
#ifdef __cplusplus
42
extern
"C"
43
{
44
#endif
45
46
47
GRASSROOTS_GEOCODER_API
const
char
*
GetCountryCodeFromName
(
const
char
*
const
country_name_s);
48
49
50
GRASSROOTS_GEOCODER_API
const
char
*
GetCountryNameFromCode
(
const
char
*
const
country_code_s);
51
52
53
GRASSROOTS_GEOCODER_API
bool
IsValidCountryCode
(
const
char
*
const
code_s);
54
55
56
//GRASSROOTS_UTIL_API bool GetLocationData (MongoTool *tool_p, json_t *row_p, PathogenomicsServiceData *data_p, const char *id_s);
57
58
59
//PATHOGENOMICS_SERVICE_LOCAL const char * InsertLocationData (MongoTool *tool_p, const json_t *row_p, PathogenomicsServiceData *data_p, const char *id_s);
60
61
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* ifnder COUNTRY_CODES_H */
67
typedefs.h
grassroots_geocoder_library.h
GetCountryNameFromCode
const char * GetCountryNameFromCode(const char *const country_code_s)
GRASSROOTS_GEOCODER_API
#define GRASSROOTS_GEOCODER_API
Definition:
grassroots_geocoder_library.h:46
IsValidCountryCode
bool IsValidCountryCode(const char *const code_s)
GetCountryCodeFromName
const char * GetCountryCodeFromName(const char *const country_name_s)
libs
geocoder
include
country_codes.h
Generated on Mon Feb 26 2024 17:00:09 for Grassroots Infrastructure by
1.8.16