PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
sioUtils.h File Reference
#include "podio/CollectionBase.h"
#include "podio/GenericParameters.h"
#include "podio/SIOBlock.h"
#include <sio/api.h>
#include <sio/compression/zlib.h>
#include <sio/definitions.h>
#include <string_view>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  podio
 
namespace  podio::sio_utils
 

Macros

#define PODIO_SIO_UTILS_H
 

Typedefs

using podio::sio_utils::StoreCollection = std::pair< const std::string &, const podio::CollectionBase * >
 

Functions

std::pair< sio::buffer, sio::record_info > podio::sio_utils::readRecord (sio::ifstream &stream, bool decompress=true, std::size_t initBufferSize=sio::mbyte)
 Read the record into a buffer and potentially uncompress it.
 
std::shared_ptr< SIOCollectionIDTableBlock > podio::sio_utils::createCollIDBlock (const std::vector< StoreCollection > &collections, const podio::CollectionIDTable &collIdTable)
 Create the collection ID block from the passed collections.
 
sio::block_list podio::sio_utils::createBlocks (const std::vector< StoreCollection > &collections, const podio::GenericParameters &parameters)
 Create all blocks to store the passed collections and parameters into a record.
 
sio::ifstream::pos_type podio::sio_utils::writeRecord (const sio::block_list &blocks, const std::string &recordName, sio::ofstream &stream, std::size_t initBufferSize=sio::mbyte, bool compress=true)
 Write the passed record and return where it starts in the file.
 

Macro Definition Documentation

◆ PODIO_SIO_UTILS_H

#define PODIO_SIO_UTILS_H

Definition at line 2 of file sioUtils.h.