Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenKneeboard/OpenKneeboard
/ FromStruct
Method
FromStruct
src/lib/include/OpenKneeboard/APIEvent.hpp:46–50 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
45
template <class T>
46
static APIEvent FromStruct(const T& v) {
47
nlohmann::json j;
48
j = v;
49
return {T::ID, j.dump()};
50
}
51
52
operator bool() const;
53
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected