9 #ifndef CMZN_FIELDTIME_HPP__
10 #define CMZN_FIELDTIME_HPP__
12 #include "zinc/fieldtime.h"
13 #include "zinc/field.hpp"
14 #include "zinc/timekeeper.hpp"
20 class FieldTimeLookup :
public Field
32 explicit FieldTimeLookup(cmzn_field_id field_id) : Field(field_id)
36 const Field& timeField);
40 FieldTimeLookup() : Field(0)
44 class FieldTimeValue :
public Field
54 explicit FieldTimeValue(cmzn_field_id field_id) : Field(field_id)
61 FieldTimeValue() : Field(0)
FieldTimeLookup createFieldTimeLookup(const Field &sourceField, const Field &timeField)
Definition: fieldtime.hpp:66
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
A field whose value equals the source_field evaluated at the time given by time_field, overriding any time prescribed for field evaluation.
Definition: fieldtime.hpp:28
FieldTimeValue createFieldTimeValue(const Timekeeper &timeKeeper)
Definition: fieldtime.hpp:72
cmzn_timekeeper_id getId() const
Definition: timekeeper.hpp:109
cmzn_field_id getId() const
Definition: field.hpp:98
The timekeeper synchronises a current time across Zinc objects.
Definition: timekeeper.hpp:41
A field which returns the current time from the supplied time keeper.
Definition: fieldtime.hpp:50