#include <rfid_reader_app.hpp>
Inheritance diagram for RfidReaderAppData:
Public Types | |
typedef boost::shared_ptr< RfidReaderAppData > | RfidReaderAppDataPtr |
Smart pointer that clients should use. | |
Types_NoType | |
enum value Types_NoType. | |
Types_Read | |
enum value Types_Read. | |
Types_Reset | |
enum value Types_Reset. | |
enum | Types { Types_NoType, Types_Read, Types_Reset } |
Types enum. More... | |
Public Member Functions | |
virtual t_uint | getSizeInBytes () const |
Get the size of this data. | |
void | setReaderId (const NodeId &nodeId) |
Write the node ID to the packet data. | |
NodeId | getReaderId () const |
Read the node ID from the packet data. | |
void | setType (Types type) |
Write the type field to this packet data. | |
Types | getType () const |
Read the type field from this packet data. | |
void | setDoEntireReadCycle (bool doEntireReadCycle) |
Sets whether the entire read cycle must be done or if the read cycle can end early in response to several consecutive unsuccessful contention intervals. | |
bool | getDoEntireReadCycle () const |
Gets whether the entire read cycle must be done or if the read cycle can end early in response to several consecutive unsuccessful contention intervals. | |
ostream & | print (ostream &s) const |
Return the stream representation of the object. | |
Static Public Member Functions | |
static RfidReaderAppDataPtr | create () |
A factory method to ensure that all objects are created via new since we are using smart pointers. | |
static RfidReaderAppDataPtr | create (const RfidReaderAppData &rhs) |
A factory method to ensure that all objects are created via new since we are using smart pointers. | |
Protected Member Functions | |
RfidReaderAppData () | |
A constructor. | |
RfidReaderAppData (const RfidReaderAppData &rhs) | |
A copy constructor. | |
virtual PacketDataPtr | clone () const |
Returns a pointer to a deep copy of this object. |
Definition at line 489 of file rfid_reader_app.hpp.
Types enum.
Specifies the types of packets that are sent.
Types_NoType | enum value Types_NoType. |
Types_Read | enum value Types_Read. |
Types_Reset | enum value Types_Reset. |
Definition at line 498 of file rfid_reader_app.hpp.
PacketDataPtr RfidReaderAppData::clone | ( | ) | const [protected, virtual] |
Returns a pointer to a deep copy of this object.
This is addresses the slicing problem with copy construction.
Reimplemented from PacketData.
Definition at line 311 of file rfid_reader_app.cpp.
References RfidReaderAppData().
Referenced by create().
bool RfidReaderAppData::getDoEntireReadCycle | ( | ) | const [inline] |
Gets whether the entire read cycle must be done or if the read cycle can end early in response to several consecutive unsuccessful contention intervals.
Definition at line 661 of file rfid_reader_app.hpp.
NodeId RfidReaderAppData::getReaderId | ( | ) | const |
Read the node ID from the packet data.
Definition at line 322 of file rfid_reader_app.cpp.
t_uint RfidReaderAppData::getSizeInBytes | ( | ) | const [inline, virtual] |
Get the size of this data.
Reimplemented from PacketData.
Definition at line 633 of file rfid_reader_app.hpp.
References getType().
RfidReaderAppData::Types RfidReaderAppData::getType | ( | ) | const [inline] |
Read the type field from this packet data.
Definition at line 650 of file rfid_reader_app.hpp.
Referenced by getSizeInBytes().
void RfidReaderAppData::setDoEntireReadCycle | ( | bool | doEntireReadCycle | ) | [inline] |
Sets whether the entire read cycle must be done or if the read cycle can end early in response to several consecutive unsuccessful contention intervals.
doEntireReadCycle | determines if the entire read cycle must be performed. |
Definition at line 655 of file rfid_reader_app.hpp.
void RfidReaderAppData::setReaderId | ( | const NodeId & | nodeId | ) |
Write the node ID to the packet data.
nodeId | the ID to be written. |
Definition at line 317 of file rfid_reader_app.cpp.
References NodeId::writeToByteArray().
void RfidReaderAppData::setType | ( | Types | type | ) | [inline] |
Write the type field to this packet data.
type | the value for the type field. |
Definition at line 645 of file rfid_reader_app.hpp.