Public Member Functions | Static Public Member Functions | Private Attributes
motoman::simple_message::io_ctrl_reply::ReadSingleIOReply Class Reference

Class encapsulated read single io reply data. These messages are sent by the FS100 controller in response to ReadSingleIO messages. More...

#include <motoman_read_single_io_reply.h>

Inheritance diagram for motoman::simple_message::io_ctrl_reply::ReadSingleIOReply:
Inheritance graph
[legend]

List of all members.

Public Member Functions

unsigned int byteLength ()
void copyFrom (ReadSingleIOReply &src)
 Copies the passed in value.
industrial::shared_types::shared_int getResultCode () const
 Returns the result code.
std::string getResultString () const
industrial::shared_types::shared_int getValue () const
 Returns the value.
void init ()
 Initializes a empty motion control reply.
void init (industrial::shared_types::shared_int value, ReadSingleIOReplyResult result_code)
 Initializes a complete read single io reply.
bool load (industrial::byte_array::ByteArray *buffer)
bool operator== (ReadSingleIOReply &rhs)
 == operator implementation
 ReadSingleIOReply (void)
 Default constructor.
void setResultCode (industrial::shared_types::shared_int result_code)
 Sets the result code.
void setValue (industrial::shared_types::shared_int value)
 Sets value.
bool unload (industrial::byte_array::ByteArray *buffer)
 ~ReadSingleIOReply (void)
 Destructor.

Static Public Member Functions

static std::string getResultString (industrial::shared_types::shared_int code)

Private Attributes

industrial::shared_types::shared_int result_code_
 The result code.
industrial::shared_types::shared_int value_
 The value.

Detailed Description

Class encapsulated read single io reply data. These messages are sent by the FS100 controller in response to ReadSingleIO messages.

The byte representation of a read single io reply is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:

member: type size value (industrial::shared_types::shared_int) 4 bytes result_code (industrial::shared_types::shared_int) 4 bytes

THIS CLASS IS NOT THREAD-SAFE

Definition at line 87 of file motoman_read_single_io_reply.h.


Constructor & Destructor Documentation

Default constructor.

This method creates empty data.

Definition at line 59 of file motoman_read_single_io_reply.cpp.

Destructor.

Definition at line 63 of file motoman_read_single_io_reply.cpp.


Member Function Documentation

Copies the passed in value.

Parameters:
src(value to copy)

Definition at line 92 of file motoman_read_single_io_reply.cpp.

Returns the result code.

Returns:
result_code number

Definition at line 151 of file motoman_read_single_io_reply.h.

Definition at line 79 of file motoman_read_single_io_reply.cpp.

Definition at line 162 of file motoman_read_single_io_reply.h.

Returns the value.

Returns:
value

Definition at line 131 of file motoman_read_single_io_reply.h.

Initializes a empty motion control reply.

Definition at line 67 of file motoman_read_single_io_reply.cpp.

Initializes a complete read single io reply.

Definition at line 73 of file motoman_read_single_io_reply.cpp.

bool motoman::simple_message::io_ctrl_reply::ReadSingleIOReply::operator== ( ReadSingleIOReply rhs)

== operator implementation

Returns:
true if equal

Definition at line 98 of file motoman_read_single_io_reply.cpp.

Sets the result code.

Parameters:
resultcode

Definition at line 141 of file motoman_read_single_io_reply.h.

Sets value.

Parameters:
valueThe value

Definition at line 121 of file motoman_read_single_io_reply.h.


Member Data Documentation

The result code.

Definition at line 199 of file motoman_read_single_io_reply.h.

The value.

Definition at line 194 of file motoman_read_single_io_reply.h.


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


motoman_driver
Author(s): Jeremy Zoss (Southwest Research Institute)
autogenerated on Sat Jun 8 2019 19:06:58