Class FleetUpdateHandle::Confirmation
Defined in File FleetUpdateHandle.hpp
Nested Relationships
This class is a nested type of Class FleetUpdateHandle.
Class Documentation
-
class Confirmation
Confirmation is a class used by the task acceptance callbacks to decide if a task description should be accepted.
Public Functions
-
Confirmation()
Constructor.
-
Confirmation &accept()
Call this function to decide that you want to accept the task request. If this function is never called, it will be assumed that the task is rejected.
-
bool is_accepted() const
Check whether.
-
Confirmation &errors(std::vector<std::string> error_messages)
Call this function to bring attention to errors related to the task request. Each call to this function will overwrite any past calls, so it is recommended to only call it once.
-
Confirmation &add_errors(std::vector<std::string> error_messages)
Call this function to add errors instead of overwriting the ones that were already there.
-
const std::vector<std::string> &errors() const
Check the errors that have been given to this confirmation.
-
Confirmation()