xorp

XorpShellBase Class Reference

XorpShellBase base class. More...

#include <xorpsh_base.hh>

List of all members.

Public Types

enum  Mode {
  MODE_AUTHENTICATING, MODE_INITIALIZING, MODE_IDLE, MODE_COMMITTING,
  MODE_LOADING, MODE_SAVING, MODE_SHUTDOWN
}
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
GENERIC_CALLBACK
typedef XorpCallback2< void,
bool, string >::RefPtr 
CallBack
typedef XorpCallback2< void,
const XrlError &, const
XrlAtomList * >::RefPtr 
GET_USERS_CALLBACK
typedef XorpCallback2< void,
const XrlError &, const
uint32_t * >::RefPtr 
PID_CALLBACK
typedef XorpCallback3< void,
const XrlError &, const bool
*, const uint32_t * >::RefPtr 
LOCK_CALLBACK

Public Member Functions

virtual EventLoopeventloop ()=0
virtual OpCommandListop_cmd_list ()=0
virtual SlaveConfigTreeconfig_tree ()=0
virtual TemplateTreetemplate_tree ()=0
virtual uint32_t clientid () const =0
virtual uint32_t rtrmgr_pid () const =0
virtual bool commit_changes (const string &deltas, const string &deletions, GENERIC_CALLBACK cb, CallBack final_cb)=0
virtual bool enter_config_mode (bool exclusive, GENERIC_CALLBACK cb)=0
virtual bool get_config_users (GET_USERS_CALLBACK cb)=0
virtual bool get_rtrmgr_pid (PID_CALLBACK cb)=0
virtual bool leave_config_mode (GENERIC_CALLBACK cb)=0
virtual bool load_from_file (const string &filename, GENERIC_CALLBACK cb, CallBack final_cb)=0
virtual bool lock_config (LOCK_CALLBACK cb)=0
virtual bool save_to_file (const string &filename, GENERIC_CALLBACK cb, CallBack final_cb)=0
virtual void set_mode (Mode mode)=0
virtual bool unlock_config (GENERIC_CALLBACK cb)=0

Detailed Description

XorpShellBase base class.

The XorpShellBase class contains pure virtual methods and is used to define the interface a router manager client like xorpsh should implement. It is used as a base class by other classes (e.g., XorpShell) which contain the real implementation.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations