src/DataObjects/AnalogTimeSeries/storage/MmapAnalogConfig.hpp
src/DataObjects/AnalogTimeSeries/storage/MmapAnalogConfig.hpp
Shared configuration types for memory-mapped analog data storage.
Classes
| Name | |
|---|---|
| struct | MmapStorageConfig Configuration for memory-mapped analog data storage. |
Types
| Name | |
|---|---|
| enum class | MmapDataType { Float32, Float64, Int8, UInt8, Int16, UInt16, Int32, UInt32} Type conversion strategies for memory-mapped analog data. |
Types Documentation
enum MmapDataType
| Enumerator | Value | Description |
|---|---|---|
| Float32 | ||
| Float64 | ||
| Int8 | ||
| UInt8 | ||
| Int16 | ||
| UInt16 | ||
| Int32 | ||
| UInt32 |
Type conversion strategies for memory-mapped analog data.
Source code
#ifndef MMAP_ANALOG_CONFIG_HPP
#define MMAP_ANALOG_CONFIG_HPP
#include <cstddef>
#include <filesystem>
enum class MmapDataType {
Float32,// 32-bit floating point (no conversion needed)
Float64,// 64-bit floating point (double)
Int8, // 8-bit signed integer
UInt8, // 8-bit unsigned integer
Int16, // 16-bit signed integer
UInt16, // 16-bit unsigned integer
Int32, // 32-bit signed integer
UInt32 // 32-bit unsigned integer
};
struct MmapStorageConfig {
std::filesystem::path file_path;
std::size_t header_size = 0;
std::size_t offset = 0;
std::size_t stride = 1;
std::size_t num_samples = 0;
MmapDataType data_type = MmapDataType::Float32;
float scale_factor = 1.0f;
float offset_value = 0.0f;
};
#endif// MMAP_ANALOG_CONFIG_HPPUpdated on 2026-11-13 at 20:25:43 +0000