OpenSDN source code
|
#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_ |
Definition at line 75 of file xmpp_config.h.
typedef boost::function<void(DiffType, const XmppChannelConfig *, const XmppChannelConfig *)> XmppConfigManager::PeerDiffObserver |
Definition at line 87 of file xmpp_config.h.
Enumerator | |
---|---|
DF_NONE | |
DF_ADD | |
DF_CHANGE | |
DF_DELETE |
Definition at line 77 of file xmpp_config.h.
XmppConfigManager::XmppConfigManager | ( | ) |
Definition at line 82 of file xmpp_config.cc.
void XmppConfigManager::AcceptFuture | ( | ) |
Definition at line 73 of file xmpp_config.cc.
|
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.
|
private |
Definition at line 104 of file xmpp_config.h.
|
private |
Definition at line 105 of file xmpp_config.h.