DDS-PSM-C++
1.0
ISO C++ API for OpenSplice DDS
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
hpp
dds
sub
TSample.hpp
Go to the documentation of this file.
1
#ifndef OMG_DDS_SUB_TSAMPLE_HPP_
2
#define OMG_DDS_SUB_TSAMPLE_HPP_
3
4
/* Copyright 2010, Object Management Group, Inc.
5
* Copyright 2010, PrismTech, Corp.
6
* Copyright 2010, Real-Time Innovations, Inc.
7
* All rights reserved.
8
*
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
20
*/
21
22
#include <
dds/core/Value.hpp
>
23
#include <
dds/sub/SampleInfo.hpp
>
24
25
namespace
dds {
26
namespace
sub {
27
template
<
typename
T,
template
<
typename
Q>
class
DELEGATE>
28
class
Sample
;
29
}
30
}
31
36
template
<
typename
T,
template
<
typename
Q>
class
DELEGATE>
37
class
dds::sub::Sample
:
public
dds::core::Value
< DELEGATE<T> >
38
{
39
public
:
40
typedef
T
DataType
;
41
42
public
:
46
Sample
() : dds::core::
Value
< DELEGATE<T> >();
47
48
Sample
(
const
T&
data
,
const
SampleInfo
&
info
);
49
50
Sample
(
const
Sample
& other);
51
52
const
DataType
&
data
()
const
;
53
void
data
(
const
DataType
& d);
54
55
const
SampleInfo
&
info
()
const
;
56
void
info
(
const
SampleInfo
& i);
57
};
58
59
60
#endif
/* OMG_DDS_SUB_TSAMPLE_HPP_ */
Generated on Sat Nov 3 2012 00:02:19 for DDS-PSM-C++ by
1.8.2