ZeroBuf  0.2.0
Zero-copy, zero-serialize, zero-hassle protocol buffers
camera.h
1 // Generated by zerobufCxx.py
2 
3 #pragma once
4 #include <zerobuf/Zerobuf.h> // base class
5 #include <zerobuf/Vector.h> // member
6 #include <array> // member
7 
8 namespace zerobuf
9 {
10 namespace render
11 {
13 {
14 public:
15  float getX() const;
16  void setX( float value );
17 
18  float getY() const;
19  void setY( float value );
20 
21  float getZ() const;
22  void setZ( float value );
23 
24  Vector3f();
25  Vector3f( const float& xValue, const float& yValue, const float& zValue );
26  Vector3f( const Vector3f& rhs );
27  Vector3f( Vector3f&& rhs ) throw();
28  Vector3f( const ::zerobuf::Zerobuf& rhs );
29  explicit Vector3f( ::zerobuf::AllocatorPtr allocator );
30  virtual ~Vector3f() {}
31 
32  Vector3f& operator = ( const Vector3f& rhs )
33  { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
34 
35  Vector3f& operator = ( Vector3f&& rhs );
36  // Introspection
37  std::string getTypeName() const final { return "zerobuf::render::Vector3f"; }
38  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x8180fd04222d2482ull, 0x37eb7dbf4f770754ull ); }
39  size_t getZerobufStaticSize() const final { return 16; }
40  static size_t ZEROBUF_STATIC_SIZE() { return 16; }
41  size_t getZerobufNumDynamics() const final { return 0; }
42  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
43 
44 
45  void _parseJSON( const Json::Value& json ) final;
46  void _createJSON( Json::Value& json ) const final;
47 private:
48 
49 };
50 
51 class Camera : public ::zerobuf::Zerobuf
52 {
53 public:
54  const Vector3f& getOrigin() const;
55  Vector3f& getOrigin();
56  void setOrigin( const Vector3f& value );
57 
58  const Vector3f& getLookAt() const;
59  Vector3f& getLookAt();
60  void setLookAt( const Vector3f& value );
61 
62  const Vector3f& getUp() const;
63  Vector3f& getUp();
64  void setUp( const Vector3f& value );
65 
66  Camera();
67  Camera( const Vector3f& originValue, const Vector3f& lookAtValue, const Vector3f& upValue );
68  Camera( const Camera& rhs );
69  Camera( Camera&& rhs ) throw();
70  Camera( const ::zerobuf::Zerobuf& rhs );
71  explicit Camera( ::zerobuf::AllocatorPtr allocator );
72  virtual ~Camera() {}
73 
74  Camera& operator = ( const Camera& rhs )
75  { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
76 
77  Camera& operator = ( Camera&& rhs );
78  // Introspection
79  std::string getTypeName() const final { return "zerobuf::render::Camera"; }
80  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x420ff405f25e5f4bull, 0x0c7e826fec92324aull ); }
81  size_t getZerobufStaticSize() const final { return 52; }
82  static size_t ZEROBUF_STATIC_SIZE() { return 52; }
83  size_t getZerobufNumDynamics() const final { return 0; }
84  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
85 
86 
87  void _parseJSON( const Json::Value& json ) final;
88  void _createJSON( Json::Value& json ) const final;
89 private:
90  Vector3f _origin;
91  Vector3f _lookAt;
92  Vector3f _up;
93 };
94 
95 }
96 }
size_t getZerobufStaticSize() const final
Definition: camera.h:39
size_t getZerobufNumDynamics() const final
Definition: camera.h:83
Zero-copy, zero-serialize, zero-hassle protocol buffers.
Definition: Allocator.h:12
size_t getZerobufStaticSize() const final
Definition: camera.h:81
Base class for all Zerobuf serializable objects.
Definition: Zerobuf.h:28
size_t getZerobufNumDynamics() const final
Definition: camera.h:41