Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
rtt
base
DataObjectBase.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
* This library is free software; you can redistribute it and/or *
3
* modify it under the terms of the GNU General Public *
4
* License as published by the Free Software Foundation; *
5
* version 2 of the License. *
6
* *
7
* As a special exception, you may use this file as part of a free *
8
* software library without restriction. Specifically, if other files *
9
* instantiate templates or use macros or inline functions from this *
10
* file, or you compile this file and link it with other files to *
11
* produce an executable, this file does not by itself cause the *
12
* resulting executable to be covered by the GNU General Public *
13
* License. This exception does not however invalidate any other *
14
* reasons why the executable file might be covered by the GNU General *
15
* Public License. *
16
* *
17
* This library is distributed in the hope that it will be useful, *
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
20
* Lesser General Public License for more details. *
21
* *
22
* You should have received a copy of the GNU General Public *
23
* License along with this library; if not, write to the Free Software *
24
* Foundation, Inc., 59 Temple Place, *
25
* Suite 330, Boston, MA 02111-1307 USA *
26
* *
27
***************************************************************************/
28
29
#ifndef CORELIB_DATAOBJECTBASE_HPP
30
#define CORELIB_DATAOBJECTBASE_HPP
31
32
#include "../rtt-fwd.hpp"
33
34
namespace
RTT
35
{
namespace
base
{
36
42
class
DataObjectBase
43
{
44
public
:
49
class
Options
{
50
private
:
51
unsigned
int
max_threads_
;
52
bool
multiple_writers_
;
53
bool
multiple_readers_
;
54
55
public
:
56
Options
();
57
Options
(
const
ConnPolicy
&policy);
58
Options
(
unsigned
int
max_threads
);
59
60
unsigned
int
max_threads
()
const
{
return
max_threads_
; }
61
Options
&
max_threads
(
unsigned
int
value) { max_threads_ = value;
return
*
this
; }
62
bool
multiple_writers
()
const
{
return
multiple_writers_
; }
63
Options
&
multiple_writers
(
bool
value) { multiple_writers_ = value;
return
*
this
; }
64
bool
multiple_readers
()
const
{
return
multiple_readers_
; }
65
Options
&
multiple_readers
(
bool
value) { multiple_readers_ = value;
return
*
this
; }
66
};
67
68
virtual
~DataObjectBase
() {}
69
74
virtual
void
clear
() = 0;
75
};
76
}}
77
78
#endif
79
RTT::base::DataObjectBase::Options::max_threads_
unsigned int max_threads_
Definition:
DataObjectBase.hpp:51
RTT::base::DataObjectBase::Options::multiple_readers_
bool multiple_readers_
Definition:
DataObjectBase.hpp:53
RTT::base::DataObjectBase::Options::multiple_writers
bool multiple_writers() const
Definition:
DataObjectBase.hpp:62
RTT::base::DataObjectBase::Options::multiple_readers
Options & multiple_readers(bool value)
Definition:
DataObjectBase.hpp:65
RTT::base::DataObjectBase::Options::max_threads
unsigned int max_threads() const
Definition:
DataObjectBase.hpp:60
RTT::base::DataObjectBase::Options::max_threads
Options & max_threads(unsigned int value)
Definition:
DataObjectBase.hpp:61
RTT::base::DataObjectBase::Options::Options
Options()
Definition:
DataObjectBase.cpp:36
RTT::base::DataObjectBase::Options::multiple_readers
bool multiple_readers() const
Definition:
DataObjectBase.hpp:64
RTT::ConnPolicy
Definition:
ConnPolicy.hpp:107
RTT::base::DataObjectBase::Options
Definition:
DataObjectBase.hpp:49
RTT::base::DataObjectBase::Options::multiple_writers
Options & multiple_writers(bool value)
Definition:
DataObjectBase.hpp:63
RTT::base::DataObjectBase::Options::multiple_writers_
bool multiple_writers_
Definition:
DataObjectBase.hpp:52
base
RTT::base::DataObjectBase::~DataObjectBase
virtual ~DataObjectBase()
Definition:
DataObjectBase.hpp:68
RTT
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition:
Activity.cpp:53
RTT::base::DataObjectBase
Base class for all data object classes.
Definition:
DataObjectBase.hpp:42
RTT::base::DataObjectBase::clear
virtual void clear()=0
rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:23