1#ifndef CASACORE_SHAPES_FILE_READER_H_
2#define CASACORE_SHAPES_FILE_READER_H_
6#include <casacore/casa/Arrays/IPosition.h>
16 if (
file_.fail())
throw std::runtime_error(
"Error opening shapes file");
24 for (ssize_t&
value : result) {
36 uint32_t uncompressed_size;
38 file_.read(
reinterpret_cast<char*
>(&uncompressed_size),
sizeof(uint32_t));
43 uint32_t compressed_size;
44 file_.read(
reinterpret_cast<char*
>(&compressed_size),
sizeof(uint32_t));
48 buffer_.resize(uncompressed_size /
sizeof(uint64_t));
49 std::span output(
reinterpret_cast<std::byte*
>(
buffer_.data()),
53 throw std::runtime_error(
"Error reading from shapes file");
std::vector< uint64_t > buffer_
std::vector< uint64_t >::const_iterator buffer_position_
ShapesFileReader(const std::string &filename)
deflate::Decompressor decompressor_
std::vector< std::byte > compressed_buffer_
this file contains all the compiler specific defines
NewDelAllocator< T > NewDelAllocator< T >::value