24#define LOGWireFormat(...) LOGnone(__VA_ARGS__)
40 return obj.serialize();
46constexpr size_t size(T* =
nullptr) {
47 return std::tuple_size<typename T::SerializedDataType>::value;
61 typename T::SerializedDataType d;
62 if (len >= size<T>()) {
63 std::copy_n(data, size<T>(), d.begin());
109 return sizeof(uint8_t);
113 return sizeof(int32_t);
117 return sizeof(uint32_t);
121 return sizeof(uint64_t);
126 return sizeof(uint8_t);
130 return sizeof(int32_t);
134 return sizeof(uint32_t);
138 return sizeof(uint64_t);
Class to derrive behaviours from, centralizing common variables such as from and until times.
Definition: cs_Behaviour.h:20
A smart timer behaviour is a switch behaviour that is allowed to extend itself passed the until time ...
Definition: cs_ExtendedSwitchBehaviour.h:20
Object that defines when a state transition should occur.
Definition: cs_SwitchBehaviour.h:26
Definition: cs_TwilightBehaviour.h:26