MRPT
1.9.9
xsdataformat.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
#ifndef XSDATAFORMAT_H
10
#define XSDATAFORMAT_H
11
12
#include "
xstypesconfig.h
"
13
#include "
xsoutputmode.h
"
14
#include "
xsoutputsettings.h
"
15
16
/*! \brief A structure for storing data formats. */
17
struct
XsDataFormat
18
{
19
/** The stored output mode */
20
XsOutputMode
m_outputMode
;
21
/** The stored output settings */
22
XsOutputSettings
m_outputSettings
;
23
24
#ifdef __cplusplus
25
/*! \brief Construct an XsDataFormat specifier
26
27
\param mode the outputmode
28
\param settings the output settings
29
*/
30
inline
explicit
XsDataFormat
(
31
const
XsOutputMode
mode
=
XS_DEFAULT_OUTPUT_MODE
,
32
const
XsOutputSettings
settings =
XS_DEFAULT_OUTPUT_SETTINGS
)
33
:
m_outputMode
(
mode
),
m_outputSettings
(settings)
34
{
35
}
36
37
//! Copy constructor
38
inline
XsDataFormat
(
const
XsDataFormat
& other)
39
:
m_outputMode
(other.
m_outputMode
),
40
m_outputSettings
(other.
m_outputSettings
)
41
{
42
}
43
44
//! Assignment operator
45
inline
const
XsDataFormat
& operator=(
const
XsDataFormat
& other)
46
{
47
// lint --e{1529} assignment to self ok
48
m_outputMode
= other.
m_outputMode
;
49
m_outputSettings
= other.
m_outputSettings
;
50
return
*
this
;
51
}
52
53
//! Equality operator
54
inline
bool
operator==
(
const
XsDataFormat
& other)
const
55
{
56
return
m_outputMode
== other.
m_outputMode
&&
57
m_outputSettings
== other.
m_outputSettings
;
58
}
59
#endif
60
};
61
62
#endif // file guard
XsOutputMode
XsOutputMode
Bit values for legacy output mode.
Definition:
xsoutputmode.h:16
xsoutputmode.h
XS_DEFAULT_OUTPUT_MODE
#define XS_DEFAULT_OUTPUT_MODE
Definition:
xsoutputmode.h:39
XS_DEFAULT_OUTPUT_SETTINGS
#define XS_DEFAULT_OUTPUT_SETTINGS
Definition:
xsoutputsettings.h:69
mrpt::img::operator==
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Definition:
TCamera.cpp:201
mode
GLint mode
Definition:
glext.h:5669
XsDataFormat
A structure for storing data formats.
Definition:
xsdataformat.h:17
XsOutputSettings
XsOutputSettings
Bit values for output settings.
Definition:
xsoutputsettings.h:16
XsDataFormat::m_outputMode
XsOutputMode m_outputMode
The stored output mode.
Definition:
xsdataformat.h:20
XsDataFormat::m_outputSettings
XsOutputSettings m_outputSettings
The stored output settings.
Definition:
xsdataformat.h:22
xsoutputsettings.h
xstypesconfig.h
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020