Lexis  1.0.0
Vocabulary of events and shared objects for BBP and HBP software
frameRange.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 data
13 {
14 
15 class FrameRange;
16 typedef std::unique_ptr< const FrameRange > ConstFrameRangePtr;
17 
18 class FrameRange : public ::zerobuf::Zerobuf
19 {
20 public:
21  uint32_t getStart() const;
28  void setStart( uint32_t value );
29 
30  uint32_t getEnd() const;
37  void setEnd( uint32_t value );
38 
39  FrameRange();
40  FrameRange( const uint32_t& startValue, const uint32_t& endValue );
41  FrameRange( const FrameRange& rhs );
42  FrameRange( FrameRange&& rhs ) noexcept;
43  FrameRange( const ::zerobuf::Zerobuf& rhs );
44  explicit FrameRange( ::zerobuf::AllocatorPtr allocator );
45  virtual ~FrameRange();
46  FrameRange& operator = ( const FrameRange& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
47  FrameRange& operator = ( FrameRange&& rhs );
48 
49  // Introspection
50  std::string getSchema() const final;
51  static std::string ZEROBUF_SCHEMA();
52  std::string getTypeName() const final { return "lexis::data::FrameRange"; }
53  static std::string ZEROBUF_TYPE_NAME() { return "lexis::data::FrameRange"; }
54  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x190fa02880b22b07ull, 0x726f90a0d8534b65ull ); }
55  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x190fa02880b22b07ull, 0x726f90a0d8534b65ull ); }
56  size_t getZerobufStaticSize() const final { return 12; }
57  static size_t ZEROBUF_STATIC_SIZE() { return 12; }
58  size_t getZerobufNumDynamics() const final { return 0; }
59  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
60  static ConstFrameRangePtr create( const void* data, const size_t size ) { return ConstFrameRangePtr( new FrameRange( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
61 
62  void _parseJSON( const Json::Value& json ) final;
63  void _createJSON( Json::Value& json ) const final;
64 };
65 
66 }
67 }
void setStart(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.