8#include "nlohmann/json.hpp"
12#include "Collection.h"
14using json = nlohmann::json;
19std::string Collection::id() {
20 return d_collection_json_obj[CMR_META_KEY][CMR_CONCEPT_ID_KEY].get<std::string>();
23std::string Collection::abstract() {
24 return d_collection_json_obj[CMR_UMM_KEY][CMR_COLLECTION_ABSTRACT_KEY].get<std::string>();
27std::string Collection::entry_title() {
28 return d_collection_json_obj[CMR_UMM_KEY][CMR_COLLECTION_ENTRY_TITLE_KEY].get<std::string>();
31std::string Collection::short_name() {
32 return d_collection_json_obj[CMR_UMM_KEY][CMR_COLLECTION_SHORT_NAME_KEY].get<std::string>();
35string Collection::to_string() {
37 msg <<
"# # # # # # # # # # # # # # # # # # " << endl;
38 msg <<
"# Collection" << endl;
39 msg <<
"# concept-id: " << id() << endl;
40 msg <<
"# short_name: " << short_name() << endl;
41 msg <<
"# entry_title: " << entry_title() << endl;
42 msg <<
"# abstract: " << abstract() << endl;