MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ expose()

template<typename Source, typename Access = Reflect::RecordAccess<Source>>
void MayaFlux::Portal::Forma::ActionTable< Source, Access >::expose ( std::string name,
Action action )
inline

Register an action that takes no parameters.

The on element may carry only its event, button and action attributes.

Definition at line 68 of file ActionTable.hpp.

69 {
70 m_makers.insert_or_assign(name,
76 return true;
77 }
79 return false;
80 });
81 if (unexpected) {
83 "<on> has an unsupported attribute " + *unexpected);
84 return std::nullopt;
85 }
86 return action;
87 });
88 }
Actions by name, which a document attaches to events and never defines.
std::string located_message(uint64_t location, std::string_view message)
A diagnostic message prefixed with the location of the element it concerns.