CommandController_General.hpp 640 Bytes
Newer Older
Niels Post's avatar
Niels Post committed
1
#pragma once
Niels Post's avatar
Niels Post committed
2

3
4

#include <core/communication/BaseCommandController.hpp>
Niels Post's avatar
Niels Post committed
5

Niels Post's avatar
Niels Post committed
6
7
8
/**
 * Handles commands in the category \refitem{CommandCategory::GENERAL}
 */
9
class CommandController_General : public BaseCommandController {
Niels Post's avatar
Niels Post committed
10
public:
Niels Post's avatar
Niels Post committed
11
12
13
14
15
    /**
     * Handle a General Command
     * @param cmd Command to handle
     * @return The result of the command. This should be sent back to the sender of the command
     */
16
    Response handle(const Command &cmd, ResponseCallback callback) override;
17
18
19

    uint8_t getCategoryID() override;

20
    CommandController_General();
Niels Post's avatar
Niels Post committed
21

22
23
    std::pair<uint8_t, uint8_t> getParameterLimits(uint8_t command_id) override;

Niels Post's avatar
Niels Post committed
24
};