Main MRPT website
>
C++ reference for MRPT 1.9.9
xSens_MT4
xstypes
include
xsens
xsfilepos.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 XSFILEPOS_H
10
#define XSFILEPOS_H
11
12
/*! \addtogroup cinterface C Interface
13
@{
14
*/
15
16
/*! \typedef XsFilePos
17
\brief The type that is used for positioning inside a file
18
*/
19
/*! \typedef XsIoHandle
20
\brief The type that is used for low-level identification of an open I/O
21
device
22
*/
23
/*! \typedef XsFileHandle
24
\brief The type that is used for low-level identification of an open file
25
*/
26
27
/*! @} */
28
29
#include <stdio.h>
30
#ifdef _WIN32
31
#ifndef _PSTDINT_H_INCLUDED
32
#include "
pstdint.h
"
33
#endif
34
typedef
__int64
XsFilePos
;
35
#ifndef HANDLE
36
#include <windows.h>
37
#endif
38
typedef
HANDLE
XsIoHandle
;
39
#else
40
#include <sys/types.h>
41
/* off_t is practically guaranteed not to be 64 bits on non64 bit systems.
42
We'd better explicitly use __off64_t to be sure of it's size.
43
*/
44
#ifdef __APPLE__
45
typedef
int64_t
XsFilePos
;
46
#else
47
typedef
__off64_t
XsFilePos
;
48
#endif
49
typedef
int32_t
XsIoHandle
;
50
#endif
51
typedef
FILE
XsFileHandle
;
52
53
#endif // file guard
XsIoHandle
HANDLE XsIoHandle
Definition:
xsfilepos.h:38
XsFileHandle
FILE XsFileHandle
Definition:
xsfilepos.h:51
int64_t
__int64 int64_t
Definition:
rptypes.h:49
int32_t
__int32 int32_t
Definition:
rptypes.h:46
pstdint.h
XsFilePos
__int64 XsFilePos
The type that is used for positioning inside a file.
Definition:
xsfilepos.h:34
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