OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
interface_kstate.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_agent_interface_kstate_h
6 #define vnsw_agent_interface_kstate_h
7 
8 class InterfaceKState: public KState {
9 public:
10  InterfaceKState(KInterfaceResp *obj, const std::string &resp_ctx,
11  vr_interface_req &encoder, int id);
12  virtual void SendResponse();
13  virtual void Handler();
14  virtual void SendNextRequest();
15  void InitDumpRequest(vr_interface_req &req) const;
16  const std::string TypeToString(int type) const;
17  const std::string FlagsToString(int flags) const;
18  template <typename ElementType>
19  const string SetItfSandesh(vector<ElementType> const &itf_sandesh) {
20  std::stringstream strm;
21  typename vector<ElementType>::const_iterator it;
22  for(it = itf_sandesh.begin(); it != itf_sandesh.end(); ++it)
23  strm << *it << " ";
24  return strm.str();
25  }
26 };
27 #endif //vnsw_agent_interface_kstate_h
const string SetItfSandesh(vector< ElementType > const &itf_sandesh)
void InitDumpRequest(vr_interface_req &req) const
InterfaceKState(KInterfaceResp *obj, const std::string &resp_ctx, vr_interface_req &encoder, int id)
Definition: kstate.h:24
uint8_t type
Definition: load_balance.h:109
const std::string TypeToString(int type) const
virtual void Handler()
const std::string FlagsToString(int flags) const
virtual void SendNextRequest()
virtual void SendResponse()