Line data Source code
1 : /* 2 : * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. 3 : * Copyright Contributors to the OpenSDN project 4 : */ 5 : 6 : #ifndef vnsw_agent_mirror_index_resource_hpp 7 : #define vnsw_agent_mirror_index_resource_hpp 8 : 9 : /* 10 : * mirror index allocator using index_vector 11 : */ 12 : #include <resource_manager/index_resource.h> 13 : #include <resource_manager/resource_backup.h> 14 : 15 : class ResourceManager; 16 : class ResourceKey; 17 : 18 : class MirrorIndexResourceKey : public IndexResourceKey { 19 : public: 20 : MirrorIndexResourceKey(ResourceManager *rm, 21 : const string &analyzer_name); 22 0 : virtual ~MirrorIndexResourceKey() {}; 23 : virtual void Backup(ResourceData *data, uint16_t op); 24 : virtual bool IsLess(const ResourceKey &rhs) const; 25 : private: 26 : std::string analyzer_name_; 27 : }; 28 : #endif