OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IFMapAgentParser Class Reference

#include <ifmap_agent_parser.h>

Collaboration diagram for IFMapAgentParser:

Public Types

enum  ConfigMsgType { UPDATE, DEL, MAX }
 
typedef boost::function
< IFMapObject *(const
pugi::xml_node, DB
*, std::string *id_name) > 
NodeParseFn
 
typedef std::map< std::string,
NodeParseFn
NodeParseMap
 

Public Member Functions

 IFMapAgentParser (DB *db)
 
void NodeRegister (const std::string &node, NodeParseFn parser)
 
void NodeClear ()
 
void ConfigParse (const pugi::xml_node config, uint64_t seq)
 
uint64_t node_updates ()
 
uint64_t node_deletes ()
 
uint64_t link_updates ()
 
uint64_t link_deletes ()
 
uint64_t node_update_parse_errors ()
 
uint64_t node_delete_parse_errors ()
 
uint64_t link_update_parse_errors ()
 
uint64_t link_delete_parse_errors ()
 
void reset_statistics ()
 

Private Member Functions

void NodeParse (pugi::xml_node &node, DBRequest::DBOperation oper, uint64_t seq)
 
void LinkParse (pugi::xml_node &node, DBRequest::DBOperation oper, uint64_t seq)
 

Private Attributes

DBdb_
 
NodeParseMap node_map_
 
uint64_t nodes_processed_ [MAX]
 
uint64_t links_processed_ [MAX]
 
uint64_t node_parse_errors_ [MAX]
 
uint64_t link_parse_errors_ [MAX]
 

Detailed Description

Definition at line 20 of file ifmap_agent_parser.h.

Member Typedef Documentation

typedef boost::function< IFMapObject *(const pugi::xml_node, DB *, std::string *id_name) > IFMapAgentParser::NodeParseFn

Definition at line 29 of file ifmap_agent_parser.h.

typedef std::map<std::string, NodeParseFn> IFMapAgentParser::NodeParseMap

Definition at line 33 of file ifmap_agent_parser.h.

Member Enumeration Documentation

Enumerator
UPDATE 
DEL 
MAX 

Definition at line 23 of file ifmap_agent_parser.h.

Constructor & Destructor Documentation

IFMapAgentParser::IFMapAgentParser ( DB db)
inline

Definition at line 29 of file ifmap_agent_parser.h.

Member Function Documentation

void IFMapAgentParser::ConfigParse ( const pugi::xml_node  config,
uint64_t  seq 
)

Definition at line 166 of file ifmap_agent_parser.cc.

uint64_t IFMapAgentParser::link_delete_parse_errors ( )
inline

Definition at line 44 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::link_deletes ( )
inline

Definition at line 40 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::link_update_parse_errors ( )
inline

Definition at line 43 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::link_updates ( )
inline

Definition at line 39 of file ifmap_agent_parser.h.

void IFMapAgentParser::LinkParse ( pugi::xml_node &  node,
DBRequest::DBOperation  oper,
uint64_t  seq 
)
private

Definition at line 72 of file ifmap_agent_parser.cc.

Here is the call graph for this function:

uint64_t IFMapAgentParser::node_delete_parse_errors ( )
inline

Definition at line 42 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::node_deletes ( )
inline

Definition at line 38 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::node_update_parse_errors ( )
inline

Definition at line 41 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::node_updates ( )
inline

Definition at line 37 of file ifmap_agent_parser.h.

void IFMapAgentParser::NodeClear ( )

Definition at line 22 of file ifmap_agent_parser.cc.

void IFMapAgentParser::NodeParse ( pugi::xml_node &  node,
DBRequest::DBOperation  oper,
uint64_t  seq 
)
private

Definition at line 26 of file ifmap_agent_parser.cc.

Here is the call graph for this function:

void IFMapAgentParser::NodeRegister ( const std::string &  node,
NodeParseFn  parser 
)

Definition at line 16 of file ifmap_agent_parser.cc.

void IFMapAgentParser::reset_statistics ( )
inline

Definition at line 45 of file ifmap_agent_parser.h.

Member Data Documentation

DB* IFMapAgentParser::db_
private

Definition at line 56 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::link_parse_errors_[MAX]
private

Definition at line 61 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::links_processed_[MAX]
private

Definition at line 59 of file ifmap_agent_parser.h.

NodeParseMap IFMapAgentParser::node_map_
private

Definition at line 57 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::node_parse_errors_[MAX]
private

Definition at line 60 of file ifmap_agent_parser.h.

uint64_t IFMapAgentParser::nodes_processed_[MAX]
private

Definition at line 58 of file ifmap_agent_parser.h.


The documentation for this class was generated from the following files: