Main MRPT website > C++ reference for 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
XS_DEFAULT_OUTPUT_MODE
#define XS_DEFAULT_OUTPUT_MODE
Definition: xsoutputmode.h:39
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
XsOutputMode
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
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
XsDataFormat
A structure for storing data formats.
Definition: xsdataformat.h:17
xsoutputsettings.h
xstypesconfig.h
XsOutputSettings
XsOutputSettings
Bit values for output settings.
Definition: xsoutputsettings.h:16
mode
GLint mode
Definition: glext.h:5669
xsoutputmode.h



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST