YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
data.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#include <
yarp/manager/data.h
>
7
8
using namespace
yarp::manager
;
9
13
InputData::InputData
() :
Node
(
INPUTD
)
14
{
15
bRequired =
false
;
16
bWithPriority =
false
;
17
modOwner =
nullptr
;
18
portType =
STREAM_PORT
;
19
}
20
21
InputData::InputData
(
const
char
* szName) :
Node
(
INPUTD
)
22
{
23
bRequired =
false
;
24
bWithPriority =
false
;
25
modOwner =
nullptr
;
26
setName
(szName);
27
portType =
STREAM_PORT
;
28
}
29
30
InputData::InputData
(
const
InputData
&input) :
Node
(input)
31
{
32
strName = input.strName;
33
strPort = input.strPort;
34
carrier = input.carrier;
35
bWithPriority = input.bWithPriority;
36
bRequired = input.bRequired;
37
strDescription = input.strDescription;
38
modOwner = input.modOwner;
39
portType = input.portType;
40
}
41
42
43
InputData::~InputData
() =
default
;
44
45
46
Node
*
InputData::clone
()
47
{
48
auto
* input =
new
InputData
(*
this
);
49
return
input;
50
}
51
52
53
54
58
OutputData::OutputData
() :
Node
(
OUTPUTD
)
59
{
60
modOwner =
nullptr
;
61
portType =
STREAM_PORT
;
62
}
63
64
65
OutputData::OutputData
(
const
char
* szName) :
Node
(
OUTPUTD
)
66
{
67
modOwner =
nullptr
;
68
setName
(szName);
69
portType =
STREAM_PORT
;
70
}
71
72
73
OutputData::OutputData
(
const
OutputData
&output) :
Node
(output)
74
{
75
strName = output.strName;
76
strPort = output.strPort;
77
carrier = output.carrier;
78
strDescription = output.strDescription;
79
modOwner = output.modOwner;
80
portType = output.portType;
81
}
82
83
84
OutputData::~OutputData
() =
default
;
85
86
87
Node
*
OutputData::clone
()
88
{
89
auto
* output =
new
OutputData
(*
this
);
90
return
output;
91
}
yarp::manager::InputData
Class InputData.
Definition
data.h:21
yarp::manager::InputData::~InputData
~InputData() override
yarp::manager::InputData::setName
void setName(const char *szName)
Definition
data.h:29
yarp::manager::InputData::clone
Node * clone() override
Definition
data.cpp:46
yarp::manager::InputData::InputData
InputData()
Class InputData.
Definition
data.cpp:13
yarp::manager::Node
a Node of a Graph
Definition
node.h:64
yarp::manager::OutputData
Definition
data.h:68
yarp::manager::OutputData::~OutputData
~OutputData() override
yarp::manager::OutputData::setName
void setName(const char *szName)
Definition
data.h:76
yarp::manager::OutputData::OutputData
OutputData()
Class OutputData.
Definition
data.cpp:58
yarp::manager::OutputData::clone
Node * clone() override
Definition
data.cpp:87
data.h
yarp::manager
Definition
application.h:20
yarp::manager::INPUTD
@ INPUTD
Definition
ymm-types.h:19
yarp::manager::STREAM_PORT
@ STREAM_PORT
Definition
ymm-types.h:21
yarp::manager::OUTPUTD
@ OUTPUTD
Definition
ymm-types.h:20
YARP
3.11.2
src
libYARP_manager
src
yarp
manager
data.cpp
Generated on Sat Mar 1 2025 02:35:32 for YARP by
1.9.8