source: pacpussensors/trunk/Vislab/lib3dv/detail/command.h@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 1.9 KB
Line 
1#ifndef LIB3DV_DETAIL_COMMAND_H
2#define LIB3DV_DETAIL_COMMAND_H
3
4/* lib3dv/command.h
5 *
6 * Copyright (C) 2013 VisLab
7 *
8 * This file is part of lib3dv; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 */
21
22#include <boost/any.hpp>
23#include <boost/asio.hpp>
24
25#include <stdint.h>
26#include <vector>
27
28namespace lib3dv
29{
30 namespace detail
31 {
32 struct command
33 {
34 enum types
35 {
36 ENUMERATE_DEVICES = 0,
37 START_TRANSMISSION,
38 STOP_TRANSMISSION,
39 RESET_PROPERTIES,
40 ENUMERATE_PROPERTIES,
41 SAVE_PROPERTIES,
42 SET_PROPERTY,
43 GET_PROPERTY,
44 POWEROFF,
45 REBOOT
46 };
47
48 enum values
49 {
50 BOOL = 0,
51 INT64,
52 INT32,
53 INT16,
54 INT8,
55 UINT64,
56 UINT32,
57 UINT16,
58 UINT8,
59 FLOAT32,
60 FLOAT64,
61 STRING,
62 NUM
63 };
64
65 enum categories
66 {
67 VALUE = 0,
68 RANGE,
69 SELECTION
70 };
71
72 types m_type;
73 std::vector<uint8_t> m_data;
74 boost::any m_result;
75 };
76 }
77}
78
79#endif
Note: See TracBrowser for help on using the repository browser.