Class MonitoringCaseVariableCommand

Inheritance Relationships

Base Type

Class Documentation

class MonitoringCaseVariableCommand : public sick::cola2::VariableCommand

Command to read the header of the monitoring case table.

Public Types

typedef sick::cola2::VariableCommand base_class

Typedef to reference the base class.

Public Functions

MonitoringCaseVariableCommand(Cola2Session &session, datastructure::MonitoringCaseData &monitoring_case_data, const uint16_t &index)

Constructor of the command.

Parameters
  • session – The current cola2 session.

  • monitoring_case_data – Reference to the monitoring case data.

  • index – Index of the variable to ask from the sensor, in range [0-254]

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.

Returns

If the command needs a session ID to be executed.

virtual bool processReply()

Processes the return from the sensor.

Returns

If processing of the returned data was successful.