blob: 6a3e8b4ace9a399e42d9da376f37c3b95c45ada7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#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
|