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. */
18 {
19  /** The stored output mode */
21  /** The stored output settings */
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(
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),
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;
50  return *this;
51  }
52 
53  //! Equality operator
54  inline bool operator==(const XsDataFormat& other) const
55  {
56  return m_outputMode == other.m_outputMode &&
58  }
59 #endif
60 };
61 
62 #endif // file guard
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
#define XS_DEFAULT_OUTPUT_MODE
Definition: xsoutputmode.h:39
#define XS_DEFAULT_OUTPUT_SETTINGS
bool operator==(const mrpt::img::TCamera &a, const mrpt::img::TCamera &b)
Definition: TCamera.cpp:201
GLint mode
Definition: glext.h:5669
A structure for storing data formats.
Definition: xsdataformat.h:17
XsOutputSettings
Bit values for output settings.
XsOutputMode m_outputMode
The stored output mode.
Definition: xsdataformat.h:20
XsOutputSettings m_outputSettings
The stored output settings.
Definition: xsdataformat.h:22



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