OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ksync_agent_sandesh.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef ksync_agent_sandesh_h_
6 #define ksync_agent_sandesh_h_
7 
8 #include <oper/agent_sandesh.h>
9 #include "interface_ksync.h"
10 #include <cmn/agent_cmn.h>
11 
12 class AgentKsyncSandesh;
13 typedef class boost::shared_ptr<AgentKsyncSandesh> AgentKsyncSandeshPtr;
15 public:
16  AgentKsyncSandesh(const std::string &context);
17  virtual ~AgentKsyncSandesh() { }
20  void SetResp();
21  virtual bool UpdateResp(KSyncEntry *entry) = 0;
22  virtual KSyncDBObject *AgentGetKsyncObject() = 0;
23  virtual void Alloc() = 0;
24 
25 protected:
27  std::string context_;
28  const std::string name_;
30 };
31 
36 public:
37  AgentKsyncIntfSandesh(const std::string &context);
39  bool UpdateResp(KSyncEntry *entry) ;
41  void Alloc() ;
42 
43 private:
44  friend class KSyncItfReq;
45 };
46 
51 public:
52  AgentKsyncNhListSandesh(const std::string &context) ;
54  bool UpdateResp(KSyncEntry *entry) ;
56  void Alloc() ;
57 
58 private:
59  friend class KSyncNhListReq;
60 };
61 #endif /*ksync_agent_sandesh_h_*/
KSyncDBObject * AgentGetKsyncObject()
SandeshResponse * resp_
const std::string name_
virtual void Alloc()=0
AgentKsyncNhListSandesh(const std::string &context)
void DoKsyncSandesh(AgentKsyncSandeshPtr sandesh)
virtual KSyncDBObject * AgentGetKsyncObject()=0
Definition: agent.h:358
class boost::shared_ptr< AgentKsyncSandesh > AgentKsyncSandeshPtr
void DoKsyncSandeshInternal(AgentKsyncSandeshPtr sandesh)
bool UpdateResp(KSyncEntry *entry)
bool UpdateResp(KSyncEntry *entry)
KSyncDBObject * AgentGetKsyncObject()
virtual bool UpdateResp(KSyncEntry *entry)=0
AgentKsyncIntfSandesh(const std::string &context)
AgentKsyncSandesh(const std::string &context)