Public Types | Public Member Functions | Private Attributes | List of all members
sick::cola2::RequiredUserActionVariableCommand Class Reference

Command to read the type code of the sensor. More...

#include <RequiredUserActionVariableCommand.h>

Inheritance diagram for sick::cola2::RequiredUserActionVariableCommand:
Inheritance graph
[legend]

Public Types

typedef sick::cola2::VariableCommand base_class
 Typedef to reference the base class. More...
 

Public Member Functions

bool canBeExecutedWithoutSessionID () const
 Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection. More...
 
bool processReply ()
 Processes the return from the sensor. More...
 
 RequiredUserActionVariableCommand (Cola2Session &session, datastructure::RequiredUserAction &required_user_action)
 Constructor of the Command. More...
 
- Public Member Functions inherited from sick::cola2::VariableCommand
std::vector< uint8_t > addTelegramData (const std::vector< uint8_t > &telegram) const
 Adds the data to the telegram. More...
 
bool canBeExecutedWithoutSessionID () const
 Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection. More...
 
uint16_t getVariableIndex () const
 
bool processReply ()
 Processes the return from the sensor. More...
 
void setVariableIndex (const uint16_t &variable_index)
 
 VariableCommand (Cola2Session &session, const uint16_t &variable_index)
 Constructor of the command. More...
 
- Public Member Functions inherited from sick::cola2::Command
 Command (sick::cola2::Cola2Session &session, const uint16_t &command_type, const uint16_t &command_mode)
 Constructor of the command. Sets the common variables for a command to the sensor. More...
 
std::vector< uint8_t > constructTelegram (const std::vector< uint8_t > &telegram) const
 Adds the data to the telegram and afterwards the header with the correct length. More...
 
uint8_t getCommandMode () const
 Returns the command mode. More...
 
uint8_t getCommandType () const
 Returns the command type. More...
 
std::vector< uint8_t > getDataVector () const
 Returns the data vector. More...
 
uint16_t getRequestID () const
 Returns the request id of the command. More...
 
uint32_t getSessionID () const
 Returns the current session ID. More...
 
void lockExecutionMutex ()
 Locks a mutex to prevent other commands being executed in parallel. More...
 
void processReplyBase (const std::vector< uint8_t > &packet)
 Parses the da incoming data package and then processes it with the inherited processReply. Afterwards the mutex will be unlocked to allow new commands to be send. More...
 
void setCommandMode (const uint8_t &command_mode)
 Sets the command mode. More...
 
void setCommandType (const uint8_t &command_type)
 Sets the command type. More...
 
void setDataVector (const std::vector< uint8_t > &data)
 Sets the data vector. More...
 
void setRequestID (const uint16_t &request_id)
 Sets the request ID of the command. More...
 
void setSessionID (const uint32_t &session_id)
 Sets the session ID. More...
 
void waitForCompletion ()
 Scooped call to the mutex, which will block until the reply was processed. More...
 
bool wasSuccessful () const
 Returns if the command was successfully parsed. More...
 
virtual ~Command ()
 We have virtual member functions, so a virtual destructor is needed. More...
 

Private Attributes

sick::datastructure::RequiredUserActionm_required_user_action
 
std::shared_ptr< sick::data_processing::ParseRequiredUserActionDatam_required_user_action_parser_ptr
 

Additional Inherited Members

- Protected Member Functions inherited from sick::cola2::Command
std::vector< uint8_t > expandTelegram (const std::vector< uint8_t > &telegram, size_t additional_bytes) const
 
- Protected Attributes inherited from sick::cola2::Command
sick::cola2::Cola2Sessionm_session
 

Detailed Description

Command to read the type code of the sensor.

Definition at line 49 of file RequiredUserActionVariableCommand.h.

Member Typedef Documentation

Typedef to reference the base class.

Definition at line 55 of file RequiredUserActionVariableCommand.h.

Constructor & Destructor Documentation

sick::cola2::RequiredUserActionVariableCommand::RequiredUserActionVariableCommand ( Cola2Session session,
datastructure::RequiredUserAction required_user_action 
)

Constructor of the Command.

Parameters
sessionThe current cola2 session.
required_user_actionReference to the required user action variable, which will be written on execution.

Definition at line 43 of file RequiredUserActionVariableCommand.cpp.

Member Function Documentation

bool sick::cola2::RequiredUserActionVariableCommand::canBeExecutedWithoutSessionID ( ) const

Returns if the command can be executed without a session ID. Will return false for most commands except the commands to establish a connection.

Returns
If the command needs a session ID to be executed.

Definition at line 52 of file RequiredUserActionVariableCommand.cpp.

bool sick::cola2::RequiredUserActionVariableCommand::processReply ( )
virtual

Processes the return from the sensor.

Returns
If processing of the returned data was successful.

Implements sick::cola2::Command.

Definition at line 57 of file RequiredUserActionVariableCommand.cpp.

Member Data Documentation

sick::datastructure::RequiredUserAction& sick::cola2::RequiredUserActionVariableCommand::m_required_user_action
private

Definition at line 87 of file RequiredUserActionVariableCommand.h.

std::shared_ptr<sick::data_processing::ParseRequiredUserActionData> sick::cola2::RequiredUserActionVariableCommand::m_required_user_action_parser_ptr
private

Definition at line 85 of file RequiredUserActionVariableCommand.h.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:42