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 
43  {
44  public:
49  class Options {
50  private:
51  unsigned int max_threads_;
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 
Options & multiple_readers(bool value)
Options & max_threads(unsigned int value)
Options & multiple_writers(bool value)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53
Base class for all data object classes.
virtual void clear()=0


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:32