载入中...
搜索中...
未找到
PcgLightingSunPhotoMode.cpp
浏览该文件的文档.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
DayNight module — a time-of-day cycle that drives the sun, sky and light.
Definition DayNight.h:94
Result< void > setPcgManualSun(const PcgManualSunState &state)
Atomically replace the persistent Pcg manual-sun state.
Definition DayNight.cpp:344
void setTarget(DayNight *target) noexcept
Attach a borrowed DayNight target and seed local state from it.
Definition PcgLightingSunPhotoMode.cpp:13
PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment &assignment) const noexcept override
Return Accepted only for the six Pcg manual-sun Lighting fields.
Definition PcgLightingSunPhotoMode.cpp:25
void setAuthority(bool enabled)
Register or revoke this instance as owner of the six manual-sun fields.
Definition PcgLightingSunPhotoMode.cpp:18
Result< void > applyPhotoModeField(const PhotoModeAssignment &assignment) override
Validate and atomically project one field through DayNight's joint sun state.
Definition PcgLightingSunPhotoMode.cpp:38
~PcgLightingSunPhotoMode() override
Pcg lighting sun photo mode.
Definition PcgLightingSunPhotoMode.cpp:9
Definition DayNight.cpp:18
@ InvalidArgument
@ Unsupported
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
Definition PcgPhotoModeApply.h:32
@ Accepted
@ Rejected
@ Lighting
One reversible field assignment in a photo-mode transaction.
Definition PcgPhotoModeApply.h:15
Persistent manual sun settings projected from Pcg Photo Mode.
Definition DayNight.h:21