Each editor op carries its category + namespace metadata so the * bridge can synthesise method bindings from the `meta` payload. */
| 1642 | /** Each editor op carries its category + namespace metadata so the |
| 1643 | * bridge can synthesise method bindings from the `meta` payload. */ |
| 1644 | void RegEditor(const TCHAR* Name, const TCHAR* Ns, |
| 1645 | URLabOpRegistry::FHandler Body, |
| 1646 | std::initializer_list<const TCHAR*> ReplyFields = {}, |
| 1647 | std::initializer_list<const TCHAR*> RequiredFields = {}) |
| 1648 | { |
| 1649 | URLabOpRegistry::FOpDecl Decl; |
| 1650 | Decl.Name = Name; |
| 1651 | Decl.Category = URLabOpRegistry::EOpCategory::EditorOnly; |
| 1652 | Decl.Namespace = Ns; |
| 1653 | Decl.Body = MoveTemp(Body); |
| 1654 | for (const TCHAR* F : ReplyFields) |
| 1655 | Decl.ReplyFields.Add(F); |
| 1656 | for (const TCHAR* F : RequiredFields) |
| 1657 | Decl.RequiredFields.Add(F); |
| 1658 | URLabOpRegistry::RegisterOp(MoveTemp(Decl)); |
| 1659 | } |
| 1660 | |
| 1661 | void RegisterAll() |
| 1662 | { |
no test coverage detected