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

#include <xmpp_config.h>

Public Types

enum  DiffType { DF_NONE, DF_ADD, DF_CHANGE, DF_DELETE }
 
typedef boost::function< void(DiffType,
const XmppChannelConfig
*, const XmppChannelConfig *)> 
PeerDiffObserver
 

Public Member Functions

 XmppConfigManager ()
 
bool ParseConfig (const std::string &config, XmppConfigData *)
 
void PeerConfigDiff (PeerDiffObserver obs) const
 
void AcceptFuture ()
 
void SetFuture (const XmppConfigData *future)
 
void Terminate ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (XmppConfigManager)
 

Private Attributes

std::unique_ptr< const
XmppConfigData
current_
 
std::unique_ptr< const
XmppConfigData
future_
 

Detailed Description

Definition at line 75 of file xmpp_config.h.

Member Typedef Documentation

typedef boost::function<void(DiffType, const XmppChannelConfig *, const XmppChannelConfig *)> XmppConfigManager::PeerDiffObserver

Definition at line 87 of file xmpp_config.h.

Member Enumeration Documentation

Enumerator
DF_NONE 
DF_ADD 
DF_CHANGE 
DF_DELETE 

Definition at line 77 of file xmpp_config.h.

Constructor & Destructor Documentation

XmppConfigManager::XmppConfigManager ( )

Definition at line 82 of file xmpp_config.cc.

Member Function Documentation

void XmppConfigManager::AcceptFuture ( )

Definition at line 73 of file xmpp_config.cc.

XmppConfigManager::DISALLOW_COPY_AND_ASSIGN ( XmppConfigManager  )
private
bool XmppConfigManager::ParseConfig ( const std::string &  config,
XmppConfigData  
)
void XmppConfigManager::PeerConfigDiff ( PeerDiffObserver  obs) const

Definition at line 32 of file xmpp_config.cc.

void XmppConfigManager::SetFuture ( const XmppConfigData future)

Definition at line 69 of file xmpp_config.cc.

void XmppConfigManager::Terminate ( )

Definition at line 77 of file xmpp_config.cc.

Member Data Documentation

std::unique_ptr<const XmppConfigData> XmppConfigManager::current_
private

Definition at line 104 of file xmpp_config.h.

std::unique_ptr<const XmppConfigData> XmppConfigManager::future_
private

Definition at line 105 of file xmpp_config.h.


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