Main MRPT website
>
C++ reference for MRPT 1.9.9
xSens_MT4
xstypes
include
xsens
xsstringarray.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 XSSTRINGARRAY_H
10
#define XSSTRINGARRAY_H
11
12
#include "
xsarray.h
"
13
14
#ifdef __cplusplus
15
#include "
xsstring.h
"
16
extern
"C"
{
17
#endif
18
19
extern
XsArrayDescriptor
const
XSTYPES_DLL_API
g_xsStringArrayDescriptor
;
20
21
#ifndef __cplusplus
22
#define XSSTRINGARRAY_INITIALIZER \
23
XSARRAY_INITIALIZER(&g_xsStringArrayDescriptor)
24
struct
XsString
;
25
26
XSARRAY_STRUCT
(
XsStringArray
,
struct
XsString
);
27
typedef
struct
XsStringArray
XsStringArray
;
28
29
XSTYPES_DLL_API
void
XsStringArray_construct
(
30
XsStringArray
* thisPtr,
XsSize
count
,
struct
XsString
const
*
src
);
31
#define XsStringArray_destruct(thisPtr) XsArray_destruct(thisPtr)
32
#else
33
}
// extern "C"
34
#endif
35
36
#ifdef __cplusplus
37
struct
XsStringArray
38
:
public
XsArrayImpl<XsString, g_xsStringArrayDescriptor, XsStringArray>
39
{
40
//! \brief Constructs an XsStringArray
41
inline
explicit
XsStringArray
(
XsSize
sz = 0,
XsString
const
*
src
= 0)
42
: ArrayImpl(sz,
src
)
43
{
44
}
45
46
//! \brief Constructs an XsStringArray as a copy of \a other
47
inline
XsStringArray
(
XsStringArray
const
& other) : ArrayImpl(other) {}
48
//! \brief Constructs an XsStringArray that references the data supplied in
49
//! \a ref
50
inline
explicit
XsStringArray
(
51
XsString
*
ref
,
XsSize
sz,
XsDataFlags
flags =
XSDF_None
)
52
: ArrayImpl(
ref
, sz, flags)
53
{
54
}
55
56
#ifndef XSENS_NOITERATOR
57
//! \brief Constructs an XsStringArray with the array bound by the supplied
58
//! iterators \a beginIt and \a endIt
59
template
<
typename
Iterator>
60
inline
XsStringArray
(Iterator beginIt, Iterator endIt)
61
: ArrayImpl(beginIt, endIt)
62
{
63
}
64
#endif
65
};
66
#endif
67
68
#endif // file guard
XsArrayDescriptor
This object describes how to treat the data in an array.
Definition:
xsarray.h:63
XsString
struct XsString XsString
Definition:
xsstring.h:34
xsstring.h
XSARRAY_STRUCT
XSARRAY_STRUCT(XsStringArray, struct XsString)
src
GLuint src
Definition:
glext.h:7278
count
GLuint GLuint GLsizei count
Definition:
glext.h:3528
g_xsStringArrayDescriptor
const XsArrayDescriptor XSTYPES_DLL_API g_xsStringArrayDescriptor
XsSize
size_t XsSize
XsSize must be unsigned number!
Definition:
xstypedefs.h:19
xsarray.h
XsStringArray_construct
XSTYPES_DLL_API void XsStringArray_construct(XsStringArray *thisPtr, XsSize count, struct XsString const *src)
XSDF_None
@ XSDF_None
No flag set.
Definition:
xstypedefs.h:44
XSTYPES_DLL_API
#define XSTYPES_DLL_API
Definition:
xstypesconfig.h:9
XsStringArray
struct XsStringArray XsStringArray
Definition:
xsstringarray.h:27
XsDataFlags
XsDataFlags
These flags define the behaviour of data contained by Xsens data structures.
Definition:
xstypedefs.h:41
ref
GLenum GLint ref
Definition:
glext.h:4050
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