Main MRPT website > C++ reference for MRPT 1.5.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-2017, 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  XsOutputMode m_outputMode; //!< The stored output mode
19  XsOutputSettings m_outputSettings; //!< The stored output settings
20 
21 #ifdef __cplusplus
22  /*! \brief Construct an XsDataFormat specifier
23 
24  \param mode the outputmode
25  \param settings the output settings
26  */
28  : m_outputMode(mode), m_outputSettings(settings) {}
29 
30  //! Copy constructor
32 
33  //! Assignment operator
34  inline const XsDataFormat& operator = (const XsDataFormat& other)
35  {
36  //lint --e{1529} assignment to self ok
37  m_outputMode = other.m_outputMode;
39  return *this;
40  }
41 
42  //! Equality operator
43  inline bool operator == (const XsDataFormat& other) const
44  {
45  return m_outputMode == other.m_outputMode && m_outputSettings == other.m_outputSettings;
46  }
47 #endif
48 };
49 
50 #endif // file guard
51 
XsOutputMode
Bit values for legacy output mode.
Definition: xsoutputmode.h:16
bool operator==(const TPoint2D &p1, const TPoint2D &p2)
Exact comparison between 2D points.
#define XS_DEFAULT_OUTPUT_MODE
Definition: xsoutputmode.h:38
#define XS_DEFAULT_OUTPUT_SETTINGS
GLint mode
Definition: glext.h:5078
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:18
XsOutputSettings m_outputSettings
The stored output settings.
Definition: xsdataformat.h:19



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020