xorp

XrlTestXrlsTargetBase Class Reference

Inheritance diagram for XrlTestXrlsTargetBase:
TestReceiver

List of all members.

Classes

struct  handler_table

Public Member Functions

 XrlTestXrlsTargetBase (XrlCmdMap *cmds=0)
 Constructor.
virtual ~XrlTestXrlsTargetBase ()
 Destructor.
bool set_command_map (XrlCmdMap *cmds)
 Set command map.
const string & get_name () const
 Get Xrl instance name associated with command map.
const char * version () const
 Get version string of instance.
 XrlTestXrlsTargetBase (XrlCmdMap *cmds=0)
 Constructor.
virtual ~XrlTestXrlsTargetBase ()
 Destructor.
bool set_command_map (XrlCmdMap *cmds)
 Set command map.
const string & get_name () const
 Get Xrl instance name associated with command map.
const char * version () const
 Get version string of instance.

Protected Member Functions

virtual XrlCmdError common_0_1_get_target_name (string &name)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_version (string &version)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_status (uint32_t &status, string &reason)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_shutdown ()=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_startup ()=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_xrls_0_1_start_transmission ()=0
virtual XrlCmdError test_xrls_0_1_end_transmission ()=0
virtual XrlCmdError test_xrls_0_1_add_xrl0 ()=0
virtual XrlCmdError test_xrls_0_1_add_xrl1 (const string &data1)=0
virtual XrlCmdError test_xrls_0_1_add_xrl2 (const string &data1, const string &data2)=0
virtual XrlCmdError test_xrls_0_1_add_xrl9 (const bool &data1, const int32_t &data2, const IPv4 &data3, const IPv4Net &data4, const IPv6 &data5, const IPv6Net &data6, const Mac &data7, const string &data8, const vector< uint8_t > &data9)=0
virtual XrlCmdError test_xrls_0_1_add_xrlx (const XrlAtomList &data)=0
virtual XrlCmdError common_0_1_get_target_name (string &name)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_version (string &version)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_status (uint32_t &status, string &reason)=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_shutdown ()=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_startup ()=0
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_xrls_0_1_start_transmission ()=0
virtual XrlCmdError test_xrls_0_1_end_transmission ()=0
virtual XrlCmdError test_xrls_0_1_add_xrl0 ()=0
virtual XrlCmdError test_xrls_0_1_add_xrl1 (const string &data1)=0
virtual XrlCmdError test_xrls_0_1_add_xrl2 (const string &data1, const string &data2)=0
virtual XrlCmdError test_xrls_0_1_add_xrl9 (const bool &data1, const int32_t &data2, const IPv4 &data3, const IPv4Net &data4, const IPv6 &data5, const IPv6Net &data6, const Mac &data7, const string &data8, const vector< uint8_t > &data9)=0
virtual XrlCmdError test_xrls_0_1_add_xrlx (const XrlAtomList &data)=0

Protected Attributes

XrlCmdMap_cmds

Private Member Functions

XrlCmdRT handle_common_0_1_get_target_name (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_get_version (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_get_status (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_shutdown (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_startup (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_start_transmission (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_end_transmission (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl0 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl1 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl2 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl9 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrlx (const XrlArgs &in, XrlCmdOT out)
void add_handlers ()
void remove_handlers ()
XrlCmdRT handle_common_0_1_get_target_name (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_get_version (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_get_status (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_shutdown (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_common_0_1_startup (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_start_transmission (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_end_transmission (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl0 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl1 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl2 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrl9 (const XrlArgs &in, XrlCmdOT out)
XrlCmdRT handle_test_xrls_0_1_add_xrlx (const XrlArgs &in, XrlCmdOT out)
void add_handlers ()
void remove_handlers ()

Static Private Attributes

static struct handler_table handlers []
static const size_t num_handlers = (sizeof(XrlTestXrlsTargetBase::handlers) / sizeof(XrlTestXrlsTargetBase::handlers[0]))

Constructor & Destructor Documentation

XrlTestXrlsTargetBase::XrlTestXrlsTargetBase ( XrlCmdMap cmds = 0)

Constructor.

Parameters:
cmdsan XrlCmdMap that the commands associated with the target should be added to. This is typically the XrlRouter associated with the target.
XrlTestXrlsTargetBase::~XrlTestXrlsTargetBase ( ) [virtual]

Destructor.

Dissociates instance commands from command map.

XrlTestXrlsTargetBase::XrlTestXrlsTargetBase ( XrlCmdMap cmds = 0)

Constructor.

Parameters:
cmdsan XrlCmdMap that the commands associated with the target should be added to. This is typically the XrlRouter associated with the target.
virtual XrlTestXrlsTargetBase::~XrlTestXrlsTargetBase ( ) [virtual]

Destructor.

Dissociates instance commands from command map.


Member Function Documentation

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_status ( uint32_t &  status,
string &  reason 
) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get status of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_status ( uint32_t &  status,
string &  reason 
) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get status of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_target_name ( string &  name) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get name of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_target_name ( string &  name) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get name of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_version ( string &  version) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get version string from Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_get_version ( string &  version) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Get version string from Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_shutdown ( ) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Request clean shutdown of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_shutdown ( ) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Request clean shutdown of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_startup ( ) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Request a startup of Xrl Target

Implemented in TestReceiver.

virtual XrlCmdError XrlTestXrlsTargetBase::common_0_1_startup ( ) [protected, pure virtual]

Pure-virtual function that needs to be implemented to:

Request a startup of Xrl Target

Implemented in TestReceiver.

bool XrlTestXrlsTargetBase::set_command_map ( XrlCmdMap cmds)

Set command map.

Parameters:
cmdspointer to command map to associate commands with. This argument is typically a pointer to the XrlRouter associated with the target.
Returns:
true on success, false if cmds is null or a command map has already been supplied.
bool XrlTestXrlsTargetBase::set_command_map ( XrlCmdMap cmds)

Set command map.

Parameters:
cmdspointer to command map to associate commands with. This argument is typically a pointer to the XrlRouter associated with the target.
Returns:
true on success, false if cmds is null or a command map has already been supplied.

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