Class CreateSession
Defined in File CreateSession.h
Inheritance Relationships
Base Type
public sick::cola2::Command
(Class Command)
Class Documentation
-
class CreateSession : public sick::cola2::Command
Command to create a new cola2 session.
Public Functions
-
explicit CreateSession(Cola2Session &session)
Constructor to create a new command to set up a new session.
- Parameters:
session – The new session which will be setup.
-
virtual std::vector<uint8_t> addTelegramData(const std::vector<uint8_t> &telegram) const
Adds the data to the telegram.
- Parameters:
telegram – The telegram which will be modified by the data.
- Returns:
Completed new telegram message
-
bool canBeExecutedWithoutSessionID() const
Returns true since creating a new session is possible without a session ID.
- Returns:
true.
-
virtual bool processReply()
Processes the return from the sensor. Checks if the request was successful.
- Returns:
If processing of the returned data was successful.
-
explicit CreateSession(Cola2Session &session)