OpenSDN source code
resource_cmn.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_resource_cmn_hpp
6 #define vnsw_agent_resource_cmn_hpp
7 
8 class ResourceTable;
9 class ResourceManager;
10 class IndexResourceTable;
11 // This Class is to Create the Resource Table
12 // based on type of the Index requested.
13 class Resource {
14 public:
15  enum Type {
16  INVALID = 0,
23  MAX
24  };
25 
27 
28 private:
29  Resource() { }
30  virtual ~Resource() { }
31 };
32 
33 #endif
static ResourceTable * Create(Type type, ResourceManager *rm)
Definition: resource_cmn.cc:16
@ MIRROR_INDEX
Definition: resource_cmn.h:22
@ BGP_AS_SERVICE_INDEX
Definition: resource_cmn.h:21
@ INTERFACE_INDEX
Definition: resource_cmn.h:18
virtual ~Resource()
Definition: resource_cmn.h:30
uint8_t type
Definition: load_balance.h:2