X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Frgw%2Frgw_tag.h;fp=src%2Fceph%2Fsrc%2Frgw%2Frgw_tag.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=f5d787ae9b2546a3d92a36ab07750a000bb81977;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/rgw/rgw_tag.h b/src/ceph/src/rgw/rgw_tag.h deleted file mode 100644 index f5d787a..0000000 --- a/src/ceph/src/rgw/rgw_tag.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef RGW_TAG_H -#define RGW_TAG_H - -#include -#include -#include - -#include "rgw_common.h" - -class RGWObjTags -{ - protected: - using tag_map_t = boost::container::flat_map ; - tag_map_t tag_map; - public: - RGWObjTags() {} - ~RGWObjTags() {} - - void encode(bufferlist& bl) const { - ENCODE_START(1,1,bl); - ::encode(tag_map, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator &bl) { - DECODE_START_LEGACY_COMPAT_LEN(1, 1, 1, bl); - ::decode(tag_map,bl); - DECODE_FINISH(bl); - } - - void dump(Formatter *f) const; - bool add_tag(const std::string& key, const std::string& val=""); - int check_and_add_tag(const std::string& key, const std::string& val=""); - size_t count() const {return tag_map.size();} - int set_from_string(const std::string& input); - const tag_map_t& get_tags() const {return tag_map;} -}; -WRITE_CLASS_ENCODER(RGWObjTags) - -#endif /* RGW_TAG_H */