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  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef vnsw_agent_resource_cmn_hpp
7 #define vnsw_agent_resource_cmn_hpp
8 
9 class ResourceTable;
10 class ResourceManager;
11 class IndexResourceTable;
12 // This Class is to Create the Resource Table
13 // based on type of the Index requested.
14 class Resource {
15 public:
16  enum Type {
17  INVALID = 0,
24  MAX
25  };
26 
28 
29 private:
30  Resource() { }
31  virtual ~Resource() { }
32 };
33 
34 #endif
static ResourceTable * Create(Type type, ResourceManager *rm)
Definition: resource_cmn.cc:17
@ MIRROR_INDEX
Definition: resource_cmn.h:23
@ BGP_AS_SERVICE_INDEX
Definition: resource_cmn.h:22
@ INTERFACE_INDEX
Definition: resource_cmn.h:19
virtual ~Resource()
Definition: resource_cmn.h:31
uint8_t type
Definition: load_balance.h:2