12 #include <nap/resource.h>
13 #include <nap/resourceptr.h>
57 template<
typename T,
typename... Args>
58 std::unique_ptr<T> toEvent(Args&&... args);
74 std::vector<std::unique_ptr<APIBaseValue>> mOwningArguments;
79 void copyArguments(
APIEvent& apiEvent);
89 template<
typename T,
typename... Args>
92 assert(RTTI_OF(T).is_derived_from(RTTI_OF(
APIEvent)));
93 std::unique_ptr<T> ptr = std::make_unique<T>(mName, mID, std::forward<Args>(args)...);
std::vector< APIBaseValue * > mArguments
Property: 'Arguments': All input arguments associated with this message.
Definition: apimessage.h:68
Definition: errorstate.h:19
std::unique_ptr< nap::APIMessage > APIMessagePtr
Definition: apimessage.h:82
std::unique_ptr< T > toEvent(Args &&... args)
Definition: apimessage.h:90
std::string mName
Property: 'Name': action associated with the message.
Definition: apimessage.h:69
Definition: apimessage.h:28
Definition: templateapp.h:17
Definition: resource.h:19
Definition: apievent.h:37