PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
Loading...
Searching...
No Matches
podio::SIOVersionBlock Struct Reference

#include <SIOBlock.h>

+ Inheritance diagram for podio::SIOVersionBlock:

Public Member Functions

 SIOVersionBlock ()
 
 SIOVersionBlock (podio::version::Version v)
 
void write (sio::write_device &device) override
 
void read (sio::read_device &device, sio::version_type) override
 

Public Attributes

podio::version::Version version {}
 

Detailed Description

Definition at line 138 of file SIOBlock.h.

Constructor & Destructor Documentation

◆ SIOVersionBlock() [1/2]

podio::SIOVersionBlock::SIOVersionBlock ( )
inline

Definition at line 139 of file SIOBlock.h.

139 : sio::block("podio_version", sio::version::encode_version(1, 0)) {
140 }

◆ SIOVersionBlock() [2/2]

podio::SIOVersionBlock::SIOVersionBlock ( podio::version::Version  v)
inline

Definition at line 142 of file SIOBlock.h.

142 :
143 sio::block("podio_version", sio::version::encode_version(1, 0)), version(v) {
144 }
podio::version::Version version
Definition: SIOBlock.h:154

Member Function Documentation

◆ read()

void podio::SIOVersionBlock::read ( sio::read_device &  device,
sio::version_type   
)
inlineoverride

Definition at line 150 of file SIOBlock.h.

150 {
151 device.data(version);
152 }

◆ write()

void podio::SIOVersionBlock::write ( sio::write_device &  device)
inlineoverride

Definition at line 146 of file SIOBlock.h.

146 {
147 device.data(version);
148 }

Member Data Documentation

◆ version

podio::version::Version podio::SIOVersionBlock::version {}

Definition at line 154 of file SIOBlock.h.

Referenced by read(), and write().


The documentation for this struct was generated from the following file: