blob: 715902d65357768a88f80969f9514b5be4bdf9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef COMMAND_H
#define COMMAND_H
#include <string>
#include "command_id.h"
#include "cxx_semantics.h"
namespace nitrokey {
namespace proto {
template <CommandID cmd_id>
class Command : semantics::non_constructible {
public:
constexpr static CommandID command_id() { return cmd_id; }
template <typename T>
static std::string dissect(const T &) {
return std::string("Payload dissection is unavailable");
}
};
}
}
#endif
|