DataChunkSorted.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright (c) 2014-2021 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 #ifndef DATA_CHUNK_SORTED_H
14 #define DATA_CHUNK_SORTED_H
15 
16 #include <stdint.h>
17 
18 #include "com_manager.h"
19 #include "DataChunk.h"
20 #include "ISLogFileBase.h"
21 
22 #define LOG_DEBUG_WRITE 0
23 #define LOG_DEBUG_READ 0
24 
26 
28 typedef struct
29 {
31  uint32_t dataSerNum;
32 
34  uint8_t buf[MAX_P_DATA_BODY_SIZE];
35 } p_cnk_data_t;
36 
37 // sub-header for sorted data chunks
38 typedef struct
39 {
41 
42  // Number of sorted data elements
43  uint32_t dCount;
45 
47 
49 {
50 public:
51  cSortedDataChunk(const char* name = "EMPT");
52  void Clear() OVERRIDE;
53 
56  int32_t GetHeaderSize() OVERRIDE;
57 
59 };
60 
61 
62 #endif // DATA_CHUNK_SORTED_H
void Clear() OVERRIDE
#define OVERRIDE
Definition: ISConstants.h:423
#define PUSH_PACK_1
Definition: ISConstants.h:231
cSortedDataChunk(const char *name="EMPT")
int32_t ReadAdditionalChunkHeader(cISLogFileBase *pFile) OVERRIDE
int32_t WriteAdditionalChunkHeader(cISLogFileBase *pFile) OVERRIDE
#define MAX_P_DATA_BODY_SIZE
Definition: ISComm.h:108
#define POP_PACK
Definition: ISConstants.h:234
p_data_hdr_t dHdr
int32_t GetHeaderSize() OVERRIDE
uint32_t dataSerNum
sChunkSubHeader m_subHdr


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57