gz/physics/CanWriteData.hh
CanWriteExpectedData()
Definition: gz/physics/CanWriteData.hh:123
A struct that defines options for writing data to a CompositeData object.
Definition: gz/physics/CanWriteData.hh:31
WriteOptions(const bool _skipMissing=false, const bool _onlyUnqueried=true)
Default constructor.
void WriteExpectedData(CompositeType &_data, const WriteOptions &_options=WriteOptions()) const
void WriteRequiredData(CompositeType &_data, const WriteOptions &_options=WriteOptions()) const
Call this function to write all the types in _data that are listed as required in the Specification.
CanWriteRequiredData()
The ability to compile this constructor ensures that an inherited class has functions that can write ...
bool onlyWriteUnqueriedData
If a data type has already been queried, do not perform the write operation on it.
Definition: gz/physics/CanWriteData.hh:41
CanWriteRequiredData provides compile-time static analysis to ensure that the inheriting class provid...
Definition: gz/physics/CanWriteData.hh:102
bool skipMissingData
If a data type is not already part of the CompositeData, then skip it instead of writing to it when t...
Definition: gz/physics/CanWriteData.hh:37