Lexis  1.1.0
Vocabulary of events and shared objects for BBP and HBP software
viewport.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 Viewport;
16 typedef std::unique_ptr< const Viewport > ConstViewportPtr;
17 
18 class Viewport : public ::zerobuf::Zerobuf
19 {
20 public:
27  uint32_t* getSize();
28  const uint32_t* getSize() const;
29  std::vector< uint32_t > getSizeVector() const;
36  void setSize( uint32_t value[ 2 ] );
43  void setSize( const std::vector< uint32_t >& value );
44  size_t getSizeSize() const;
45 
46  Viewport();
47  Viewport( const std::vector< uint32_t >& sizeValue );
48  Viewport( const Viewport& rhs );
49  Viewport( Viewport&& rhs ) noexcept;
50  Viewport( const ::zerobuf::Zerobuf& rhs );
51  explicit Viewport( ::zerobuf::AllocatorPtr allocator );
52  virtual ~Viewport();
53  Viewport& operator = ( const Viewport& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
54  Viewport& operator = ( Viewport&& rhs );
55 
56  // Introspection
57  std::string getSchema() const final;
58  static std::string ZEROBUF_SCHEMA();
59  std::string getTypeName() const final { return "lexis::render::Viewport"; }
60  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::Viewport"; }
61  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x5c143f2b0e3725bcull, 0xb683bd210c58e155ull ); }
62  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x5c143f2b0e3725bcull, 0xb683bd210c58e155ull ); }
63  size_t getZerobufStaticSize() const final { return 12; }
64  static size_t ZEROBUF_STATIC_SIZE() { return 12; }
65  size_t getZerobufNumDynamics() const final { return 0; }
66  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
67  static ConstViewportPtr create( const void* data, const size_t size ) { return ConstViewportPtr( new Viewport( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
68 
69  void _parseJSON( const Json::Value& json ) final;
70  void _createJSON( Json::Value& json ) const final;
71 };
72 
73 }
74 }
75 namespace zerobuf
76 {
77 }
78 
void setSize(uint32_t value[2])
Set the value of the Size fixed size array from a uint32_t*.
uint32_t * getSize()
Get a pointer to the Size fixed size array.