67 map<string, string, std::less<>> props;
69 props[CATALOG_NAME_KEY] =
get_name();
70 props[CATALOG_TYPE_KEY] =
get_type() == leaf ?
"leaf":
"node";
71 props[CATALOG_LMT_KEY] =
get_lmt();
75 props[CATALOG_SIZE_KEY] = oss.str();
76 props[CATALOG_IS_DATA_KEY] =
is_data() ?
"true" :
"false";
78 BESDEBUG(MODULE,prolog <<
"dap_service_url: " << dap_service_url << endl );
79 if(!dap_service_url.empty()){
80 props[CATALOG_DAP_URL_KEY] = dap_service_url;
84 info->begin_tag(CATALOG_ITEM_TAG, &props);
86 if(!description.empty()){
87 map<string, string, std::less<>> description_props;
88 info->begin_tag(CATALOG_DESCRIPTION_KEY, &description_props);
90 info->end_tag(CATALOG_DESCRIPTION_KEY);
93 info->end_tag(CATALOG_ITEM_TAG);
97 list<string> services = entry->get_service_list();
98 if (services.size()) {
101 for (; si != se; si++) {
102 info->add_tag(
"serviceRef", (*si));
116 strm << BESIndent::LMarg <<
"CatalogItem::dump - (" << (
void *)
this <<
")" << endl;
119 strm << BESIndent::LMarg <<
"name: " << d_name << endl;
120 strm << BESIndent::LMarg <<
"size: " << d_size << endl;
121 strm << BESIndent::LMarg <<
"last modified time: " << d_lmt << endl;
122 strm << BESIndent::LMarg <<
"is_data: " << d_is_data << endl;
123 strm << BESIndent::LMarg <<
"type: " << d_type << endl;
125 BESIndent::UnIndent();