Write a record.
- Template Parameters
-
| Mode | The write mode |
| T | The record value type (automatically deduced) |
- Parameters
-
| record | The record to be written |
Methods to write records may have different behaviors, according to the template parameter Mode. It specifies what to do if a keyword already exists (update or throw) and if a keyword does not exist (write or throw).
Example usages:
h.write(record);
h.write("KEY", 0);
@ CreateNew
Create a new record, even if keyword already exists.
where h is a Header and record is a Record<T>.
- See also
- RecordMode
- Examples
- EleFitsTutorial.cpp.