23 #include "openPMD/backend/BaseRecord.hpp" 24 #include "openPMD/RecordComponent.hpp" 27 #include <type_traits> 40 Record(Record
const&) =
default;
41 Record& operator=(Record
const&) =
default;
42 ~Record()
override =
default;
44 Record& setUnitDimension(std::map< UnitDimension, double >
const&);
46 template<
typename T >
48 template<
typename T >
49 Record& setTimeOffset(
T);
54 void flush_impl(std::string
const&)
override;
59 template<
typename T >
61 Record::timeOffset()
const 62 {
return readFloatingpoint< T >(
"timeOffset"); }
64 template<
typename T >
66 Record::setTimeOffset(
T to)
68 static_assert(std::is_floating_point< T >::value,
"Type of attribute must be floating point");
Logical compilation of data from one snapshot (e.g.
Definition: Iteration.hpp:38
bool setAttribute(std::string const &key, T const &value)
Populate Attribute of provided name with provided value.
Definition: Attributable.hpp:209
Public definitions of openPMD-api.
Definition: Date.cpp:29
Definition: Record.hpp:33
Definition: BaseRecord.hpp:36
Definition: ParticleSpecies.hpp:34
Map-like container that enforces openPMD requirements and handles IO.
Definition: Container.hpp:70