4 #include <zerobuf/ConstAllocator.h> 5 #include <zerobuf/Vector.h> 6 #include <zerobuf/Zerobuf.h> 16 typedef std::unique_ptr< const Frame > ConstFramePtr;
18 class Frame :
public ::zerobuf::Zerobuf
21 uint32_t getStart()
const;
30 uint32_t getCurrent()
const;
39 uint32_t getEnd()
const;
46 void setEnd( uint32_t value );
48 int32_t getDelta()
const;
58 Frame(
const uint32_t& startValue,
const uint32_t& currentValue,
const uint32_t& endValue,
const int32_t& deltaValue );
61 Frame( const ::zerobuf::Zerobuf& rhs );
62 explicit Frame( ::zerobuf::AllocatorPtr allocator );
64 Frame& operator = (
const Frame& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
68 std::string getSchema()
const final;
69 static std::string ZEROBUF_SCHEMA();
70 std::string getTypeName()
const final {
return "lexis::render::Frame"; }
71 static std::string ZEROBUF_TYPE_NAME() {
return "lexis::render::Frame"; }
72 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0x47df75ffc7d61178ull, 0x4645433ea418bd99ull ); }
73 static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x47df75ffc7d61178ull, 0x4645433ea418bd99ull ); }
74 size_t getZerobufStaticSize()
const final {
return 20; }
75 static size_t ZEROBUF_STATIC_SIZE() {
return 20; }
76 size_t getZerobufNumDynamics()
const final {
return 0; }
77 static size_t ZEROBUF_NUM_DYNAMICS() {
return 0; }
78 static ConstFramePtr create(
const void* data,
const size_t size ) {
return ConstFramePtr(
new Frame( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
80 void _parseJSON(
const Json::Value& json )
final;
81 void _createJSON( Json::Value& json )
const final;
void setStart(uint32_t value)
Set the value of the uint32_t fixed size member.
void setCurrent(uint32_t value)
Set the value of the uint32_t fixed size member.
void setEnd(uint32_t value)
Set the value of the uint32_t fixed size member.
void setDelta(int32_t value)
Set the value of the int32_t fixed size member.