Lexis  1.0.0
Vocabulary of events and shared objects for BBP and HBP software
frame.h
1 // Generated by zerobufCxx.py
2 
3 #pragma once
4 #include <zerobuf/ConstAllocator.h> // static create
5 #include <zerobuf/Vector.h> // member
6 #include <zerobuf/Zerobuf.h> // base class
7 #include <array> // member
8 #include <memory> // std::unique_ptr
9 
10 namespace lexis
11 {
12 namespace render
13 {
14 
15 class Frame;
16 typedef std::unique_ptr< const Frame > ConstFramePtr;
17 
18 class Frame : public ::zerobuf::Zerobuf
19 {
20 public:
21  uint32_t getStart() const;
28  void setStart( uint32_t value );
29 
30  uint32_t getCurrent() const;
37  void setCurrent( uint32_t value );
38 
39  uint32_t getEnd() const;
46  void setEnd( uint32_t value );
47 
48  int32_t getDelta() const;
55  void setDelta( int32_t value );
56 
57  Frame();
58  Frame( const uint32_t& startValue, const uint32_t& currentValue, const uint32_t& endValue, const int32_t& deltaValue );
59  Frame( const Frame& rhs );
60  Frame( Frame&& rhs ) noexcept;
61  Frame( const ::zerobuf::Zerobuf& rhs );
62  explicit Frame( ::zerobuf::AllocatorPtr allocator );
63  virtual ~Frame();
64  Frame& operator = ( const Frame& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
65  Frame& operator = ( Frame&& rhs );
66 
67  // Introspection
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 )))); }
79 
80  void _parseJSON( const Json::Value& json ) final;
81  void _createJSON( Json::Value& json ) const final;
82 };
83 
84 }
85 }
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.