xorp

XrlTestTarget Class Reference

Inheritance diagram for XrlTestTarget:
XrlTestTargetBase

List of all members.

Public Member Functions

 XrlTestTarget (XrlRouter *r)

Protected Member Functions

virtual XrlCmdError common_0_1_get_target_name (string &name)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_version (string &version)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_get_status (uint32_t &status, string &reason)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError common_0_1_shutdown ()
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_1_0_print_hello_world ()
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_1_0_print_hello_world_and_message (const string &msg)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_1_0_get_greeting_count (int32_t &num_msgs)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_1_0_get_greeting (const int32_t &greeting_no, string &greeting)
 Pure-virtual function that needs to be implemented to:
virtual XrlCmdError test_1_0_shoot_foot ()
 Pure-virtual function that needs to be implemented to:

Static Private Attributes

static const string greetings []
static const int32_t n_greetings

Member Function Documentation

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

Pure-virtual function that needs to be implemented to:

Get status of Xrl Target

Implements XrlTestTargetBase.

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

Pure-virtual function that needs to be implemented to:

Get name of Xrl Target

Implements XrlTestTargetBase.

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

Pure-virtual function that needs to be implemented to:

Get version string from Xrl Target

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::common_0_1_shutdown ( ) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Request clean shutdown of Xrl Target

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::test_1_0_get_greeting ( const int32_t &  greeting_num,
string &  greeting 
) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Get greeting.

Parameters:
greeting_numindex of greeting.
greetingtext of greeting.

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::test_1_0_get_greeting_count ( int32_t &  num_msgs) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Count number of greetings available.

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::test_1_0_print_hello_world ( ) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Print "hello world".

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::test_1_0_print_hello_world_and_message ( const string &  msg) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Print "hello world" and a user supplied greeting.

Parameters:
msggreeting to be printed.

Implements XrlTestTargetBase.

XrlCmdError XrlTestTarget::test_1_0_shoot_foot ( ) [protected, virtual]

Pure-virtual function that needs to be implemented to:

Something that always fails.

Implements XrlTestTargetBase.


Member Data Documentation

const string XrlTestTarget::greetings [static, private]
Initial value:
 {
    "Hi", "Howdy Partner", "You again"
}
const int32_t XrlTestTarget::n_greetings [static, private]
Initial value:
 sizeof(XrlTestTarget::greetings) / 
sizeof(XrlTestTarget::greetings[0])

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