ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::SpecEntry Struct Reference

#include <SpecRegistry.h>

Collaboration diagram for GlobalSim::SpecEntry:

Public Attributes

std::size_t width {0}
 Total width of the packed word, in bits.
std::function< std::string(const SG::AuxElement &)> pack
 Pack one object into its hex token.
std::function< void(SG::AuxElement &, const std::string &)> unpack
 Fill one object from its hex token.

Detailed Description

Definition at line 28 of file SpecRegistry.h.

Member Data Documentation

◆ pack

std::function<std::string(const SG::AuxElement&)> GlobalSim::SpecEntry::pack

Pack one object into its hex token.

Definition at line 34 of file SpecRegistry.h.

◆ unpack

std::function<void(SG::AuxElement&, const std::string&)> GlobalSim::SpecEntry::unpack

Fill one object from its hex token.

The caller must pass exactly width/4 hex characters – a longer token would be silently truncated by std::bitset, so the length is checked where the file is read.

Definition at line 39 of file SpecRegistry.h.

◆ width

std::size_t GlobalSim::SpecEntry::width {0}

Total width of the packed word, in bits.

Always a multiple of four, so a token is width/4 hex characters.

Definition at line 31 of file SpecRegistry.h.

31{0};

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