OpenSDN source code
|
#include <ifmap_server_parser.h>
Public Types | |
typedef boost::function< bool(const pugi::xml_node &, std::unique_ptr < AutogenProperty > *) > | MetadataParseFn |
typedef std::map< std::string, MetadataParseFn > | MetadataParseMap |
typedef std::list< struct DBRequest * > | RequestList |
Public Member Functions | |
bool | ParseResultItem (const pugi::xml_node &parent, bool add_change, RequestList *list) const |
void | ParseResults (const pugi::xml_document &xdoc, RequestList *list) const |
void | MetadataRegister (const std::string &metadata, MetadataParseFn parser) |
void | MetadataClear (const std::string &module) |
void | SetOrigin (struct DBRequest *result) const |
bool | Receive (DB *db, const char *data, size_t length, uint64_t sequence_number) |
Static Public Member Functions | |
static IFMapServerParser * | GetInstance (const std::string &module) |
static void | DeleteInstance (const std::string &module) |
Private Types | |
typedef std::map< std::string, IFMapServerParser * > | ModuleMap |
Private Member Functions | |
bool | ParseMetadata (const pugi::xml_node &node, struct DBRequest *result) const |
Private Attributes | |
MetadataParseMap | metadata_map_ |
Static Private Attributes | |
static ModuleMap | module_map_ |
Definition at line 21 of file ifmap_server_parser.h.
typedef boost::function< bool(const pugi::xml_node &, std::unique_ptr<AutogenProperty> *) > IFMapServerParser::MetadataParseFn |
Definition at line 25 of file ifmap_server_parser.h.
typedef std::map<std::string, MetadataParseFn> IFMapServerParser::MetadataParseMap |
Definition at line 26 of file ifmap_server_parser.h.
|
private |
Definition at line 45 of file ifmap_server_parser.h.
typedef std::list<struct DBRequest *> IFMapServerParser::RequestList |
Definition at line 27 of file ifmap_server_parser.h.
|
static |
Definition at line 39 of file ifmap_server_parser.cc.
|
static |
Definition at line 29 of file ifmap_server_parser.cc.
void IFMapServerParser::MetadataClear | ( | const std::string & | module | ) |
Definition at line 56 of file ifmap_server_parser.cc.
void IFMapServerParser::MetadataRegister | ( | const std::string & | metadata, |
MetadataParseFn | parser | ||
) |
Definition at line 49 of file ifmap_server_parser.cc.
|
private |
bool IFMapServerParser::ParseResultItem | ( | const pugi::xml_node & | parent, |
bool | add_change, | ||
RequestList * | list | ||
) | const |
void IFMapServerParser::ParseResults | ( | const pugi::xml_document & | xdoc, |
RequestList * | list | ||
) | const |
bool IFMapServerParser::Receive | ( | DB * | db, |
const char * | data, | ||
size_t | length, | ||
uint64_t | sequence_number | ||
) |
void IFMapServerParser::SetOrigin | ( | struct DBRequest * | result | ) | const |
|
private |
Definition at line 51 of file ifmap_server_parser.h.
|
staticprivate |
Definition at line 46 of file ifmap_server_parser.h.