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
* @ingroup ApplicationApi
15
* Provides methods that returns I/Os from the current robot installation.
16
*
17
*/
18
class
ARCS_ABI_EXPORT
IoModel
19
{
20
public
:
21
IoModel
(
IoModel
&f);
22
IoModel
(
IoModel
&&f);
23
~IoModel
();
24
25
/**
26
* @ingroup IoModel
27
* @return the collection of available I/Os, including Modbus, EuroMap67 and
28
* named General Purpose Registers.
29
*/
30
std::vector<IoPtr>
getAll
();
31
32
/**
33
* @ingroup IoModel
34
* @ref Io
35
* @brief getIo
36
* @param name
37
* @return
38
*/
39
IoPtr
getIo
(
const
std::string &name);
40
41
/**
42
* @ingroup IoModel
43
* @param filter, see {@link IOFilterFactory}
44
* @return the collection of IOs that are accepted by the filter.
45
*/
46
std::vector<IoPtr>
getIos
(std::function<
bool
(IoPtr)> filter);
47
48
private
:
49
friend
class
DataSwitch
;
50
IoModel
();
51
void
*
d_
{
nullptr
};
52
};
53
54
}
// namespace aubo_scope
55
}
// namespace arcs
56
#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:19
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:51
arcs::aubo_scope::IoModel::DataSwitch
friend class DataSwitch
定义
io_model.h:49
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
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