InertiaSDK

Loading...
Searching...
No Matches
InertiaCommands.h
1#pragma once
2#include "data/command/ServiceCommands.h"
3#include "data/command/FlashCommands.h"
4#include "data/command/LoggingCommands.h"
5#include "data/command/RemoteIOCommands.h"
6#include "data/command/IOConfigCommands.h"
7#include "data/command/SchedulerCommands.h"
8#include "data/command/GccCommands.h"
9
10 namespace inertia
11{
12
17 struct INERTIA_API InertiaCommands
18{
19 private:
20 InertiaCommandPtr m_command;
21
22 public:
26 InertiaCommands();
27
32 InertiaCommands(std::vector<uint8_t> const& in);
33
38 InertiaCommands(std::wstring const& argString);
39
43 InertiaCommands(InertiaCommandPtr const& command);
44
45
49 InertiaCommandPtr const GetCommand() const;
50
54 InertiaCommandGroups GetGroup() const;
55
59 unsigned GetType() const;
60
64 bool GetIsResponse() const;
65
66
70 std::vector<uint8_t> GetBytes() const;
71
72#ifdef WITH_BOOST_PROGRAM_OPTIONS
77 static const po::options_description GetOptionDescription();
78#endif
79
84 const std::wstring ToString() const;
85};
86
87}
inertia
Definition FlashCommands.h:6
inertia::InertiaCommandPtr
std::shared_ptr< InertiaCommand > InertiaCommandPtr
Pointer to an InertiaCommand.
Definition platform.h:52
inertia::InertiaCommandGroups
InertiaCommandGroups
Definition InertiaCommand.h:7
inertia::InertiaCommands::InertiaCommands
InertiaCommands()
inertia::InertiaCommands::GetOptionDescription
static const po::options_description GetOptionDescription()
inertia::InertiaCommands::InertiaCommands
InertiaCommands(std::wstring const &argString)
inertia::InertiaCommands::GetType
unsigned GetType() const
inertia::InertiaCommands::GetGroup
InertiaCommandGroups GetGroup() const
inertia::InertiaCommands::GetCommand
InertiaCommandPtr const GetCommand() const
inertia::InertiaCommands::GetIsResponse
bool GetIsResponse() const
inertia::InertiaCommands::ToString
const std::wstring ToString() const
inertia::InertiaCommands::InertiaCommands
InertiaCommands(InertiaCommandPtr const &command)
inertia::InertiaCommands::InertiaCommands
InertiaCommands(std::vector< uint8_t > const &in)
inertia::InertiaCommands::GetBytes
std::vector< uint8_t > GetBytes() const