AuboStudio SDK
0.6.3
io_model.h
浏览该文件的文档.
1
#ifndef AUBO_SCOPE_IO_MODEL_H
2
#define AUBO_SCOPE_IO_MODEL_H
3
4
#include <vector>
5
#include <functional>
6
#include <
aubo_caps/class_forward.h
>
7
#include <
aubo_caps/domain/io/io.h
>
8
9
namespace
arcs
{
10
namespace
aubo_scope
{
11
ARCS_CLASS_FORWARD
(
IoModel
);
12
13
/**
14
* Provides methods that returns I/Os from the current robot installation.
15
*
16
*/
17
class
ARCS_ABI_EXPORT
IoModel
18
{
19
public
:
20
IoModel
(
IoModel
&f);
21
IoModel
(
IoModel
&&f);
22
~IoModel
();
23
24
/**
25
*
26
* @return the collection of available I/Os, including Modbus, EuroMap67 and
27
* named General Purpose Registers.
28
*/
29
std::vector<IoPtr>
getAll
();
30
31
IoPtr
getIo
(
const
std::string &name);
32
33
/**
34
*
35
* @param filter, see {@link IOFilterFactory}
36
* @return the collection of IOs that are accepted by the filter.
37
*/
38
std::vector<IoPtr>
getIos
(std::function<
bool
(IoPtr)> filter);
39
40
private
:
41
friend
class
DataSwitch
;
42
IoModel
();
43
void
*
d_
{
nullptr
};
44
};
45
46
}
// namespace aubo_scope
47
}
// namespace arcs
48
#endif
class_forward.h
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
定义
class_forward.h:16
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::IoModel
Provides methods that returns I/Os from the current robot installation.
定义
io_model.h:18
arcs::aubo_scope::IoModel::getAll
std::vector< IoPtr > getAll()
arcs::aubo_scope::IoModel::IoModel
IoModel(IoModel &f)
arcs::aubo_scope::IoModel::getIos
std::vector< IoPtr > getIos(std::function< bool(IoPtr)> filter)
arcs::aubo_scope::IoModel::IoModel
IoModel()
arcs::aubo_scope::IoModel::d_
void * d_
定义
io_model.h:43
arcs::aubo_scope::IoModel::DataSwitch
friend class DataSwitch
定义
io_model.h:41
arcs::aubo_scope::IoModel::~IoModel
~IoModel()
arcs::aubo_scope::IoModel::IoModel
IoModel(IoModel &&f)
arcs::aubo_scope::IoModel::getIo
IoPtr getIo(const std::string &name)
io.h
arcs::aubo_scope
定义
contribution_provider.h:8
arcs
定义
contribution_provider.h:7
include
aubo_caps
domain
io
io_model.h
制作者
1.16.1