25 #ifndef INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF 26 #define INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF 32 #include <json/value.h> 39 static const char SECONDS_KEY[] =
"seconds";
40 static const char USECONDS_KEY[] =
"microseconds";
42 Json::Value val = Json::objectValue;
43 val[SECONDS_KEY] = Json::Value(Json::Int64(ts.
seconds));
49 ts.
seconds = val[SECONDS_KEY].asInt64();
57 #endif // INCLUDED_JSONTimestamp_h_GUID_F8E6C4C6_5A2F_4DA3_E633_68824AD1ABAF Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Header providing a C++ wrapper around TimeValueC.h.
OSVR_TimeValue_Microseconds microseconds
Microseconds portion of the time value.
Definition: TimeValueC.h:85
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
Json::Value toJson(Eigen::QuaternionBase< Derived > const &quat)
Converts quaternions to JSON objects.
Definition: JSONEigen.h:47
OSVR_TimeValue_Seconds seconds
Seconds portion of the time value.
Definition: TimeValueC.h:83