55 std::string d_cmr_endpoint_url{DEFAULT_CMR_HOST_URL};
56 std::string d_cmr_provider_search_endpoint_url;
57 std::string d_cmr_providers_search_endpoint_url;
58 std::string d_cmr_collections_search_endpoint_url;
59 std::string d_cmr_granules_search_endpoint_url;
60 std::string d_cmr_granules_umm_search_endpoint_url;
61 const nlohmann::json &get_temporal_group(
const nlohmann::json &cmr_doc)
const;
63 const nlohmann::json &get_year_group(
const nlohmann::json &cmr_doc)
const;
64 const nlohmann::json &get_years(
const nlohmann::json &cmr_doc)
const;
65 const nlohmann::json &get_year(
const std::string &target_year,
const nlohmann::json &cmr_doc)
const;
68 const nlohmann::json &get_month_group(
const std::string &for_year,
const nlohmann::json &cmr_doc)
const;
70 const nlohmann::json &get_month(
const std::string &target_month,
71 const std::string &target_year,
72 const nlohmann::json &cmr_doc)
const;
74 const nlohmann::json &get_day_group(
const std::string &target_month,
75 const std::string &target_year,
76 const nlohmann::json &cmr_doc)
const;
78 const nlohmann::basic_json<> &get_items(
const nlohmann::basic_json<> &cmr_doc)
const;
80 const nlohmann::json &get_children(
const nlohmann::json &jobj)
const;
82 const nlohmann::json &get_feed(
const nlohmann::json &cmr_doc)
const;
84 const nlohmann::json& get_entries(
const nlohmann::json &cmr_doc)
const;
86 void granule_search(
const std::string &collection_name,
87 const std::string &r_year,
88 const std::string &r_month,
89 const std::string &r_day,
90 nlohmann::json &cmr_doc)
const;
92 void granule_umm_search(
const std::string &collection_name,
93 const std::string &r_year,
94 const std::string &r_month,
95 const std::string &r_day,
96 nlohmann::json &cmr_doc)
const;
98 void get_collections_worker(
const std::string &provider_id,
99 std::map<std::string, std::unique_ptr<cmr::Collection>> &collections,
100 unsigned int page_size=CMR_MAX_PAGE_SIZE,
101 bool just_opendap=
false )
const;
109 void get_years(
const std::string &collection_name,
110 std::vector<std::string> &years_result)
const;
112 void get_months(
const std::string &collection_name,
113 const std::string &year,
114 std::vector<std::string> &months_result)
const;
116 void get_days(
const std::string& collection_name,
117 const std::string& r_year,
118 const std::string &r_month,
119 std::vector<std::string> &days_result)
const;
122 const std::string& r_year,
123 const std::string &r_month,
124 const std::string &r_day,
125 std::vector<std::string> &granule_ids)
const;
128 const std::string &r_year,
129 const std::string &r_month,
130 const std::string &r_day,
131 std::vector<std::unique_ptr<cmr::Granule>> &granule_objs)
const;
134 const std::string &r_year,
135 const std::string &r_month,
136 const std::string &r_day,
137 std::vector<std::unique_ptr<cmr::GranuleUMM>> &granule_objs)
const;
139 void get_collection_ids(std::vector<std::string> &collection_ids)
const;
141 unsigned long granule_count(
const std::string &collection_name,
142 const std::string &r_year,
143 const std::string &r_month,
144 const std::string &r_day)
const;
147 cmr::Granule *get_granule(
const std::string path)
const;
149 std::unique_ptr<Granule> get_granule(
const std::string& collection_name,
150 const std::string& r_year,
151 const std::string& r_month,
152 const std::string& r_day,
153 const std::string& granule_id)
const;
155 void get_providers( std::vector<std::unique_ptr<cmr::Provider> > &providers)
const;
156 void get_opendap_providers(std::map< std::string, std::unique_ptr<cmr::Provider> > &providers)
const;
159 void get_collections(
const std::string &provider_id, std::map< std::string, std::unique_ptr<cmr::Collection> > &collections )
const;
160 void get_opendap_collections(
const std::string &provider_id, std::map<std::string, std::unique_ptr<cmr::Collection> > &collections )
const;