ZeroBuf  0.2.0
Zero-copy, zero-serialize, zero-hassle protocol buffers
imageJPEG.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  typedef ::zerobuf::Vector< uint8_t > Data;
16  ImageJPEG::Data& getData();
17  const ImageJPEG::Data& getData() const;
18  void setData( uint8_t const * value, size_t size );
19  std::vector< uint8_t > getDataVector() const;
20  void setData( const std::vector< uint8_t >& value );
21  std::string getDataString() const;
22  void setData( const std::string& value );
23 
24  void compact( float threshold = 0.1f ) final;
25  ImageJPEG();
26  ImageJPEG( const std::vector< uint8_t >& dataValue );
27  ImageJPEG( const ImageJPEG& rhs );
28  ImageJPEG( ImageJPEG&& rhs ) throw();
29  ImageJPEG( const ::zerobuf::Zerobuf& rhs );
30  explicit ImageJPEG( ::zerobuf::AllocatorPtr allocator );
31  virtual ~ImageJPEG() {}
32 
33  ImageJPEG& operator = ( const ImageJPEG& rhs )
34  { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
35 
36  ImageJPEG& operator = ( ImageJPEG&& rhs );
37  // Introspection
38  std::string getTypeName() const final { return "zerobuf::render::ImageJPEG"; }
39  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xb1d4981bbad94bccull, 0x525934fdd68ba35eull ); }
40  size_t getZerobufStaticSize() const final { return 20; }
41  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
42  size_t getZerobufNumDynamics() const final { return 1; }
43  static size_t ZEROBUF_NUM_DYNAMICS() { return 1; }
44 
45 
46  void _parseJSON( const Json::Value& json ) final;
47  void _createJSON( Json::Value& json ) const final;
48 private:
49  Data _data;
50 };
51 
52 }
53 }
void compact(float threshold=0.1f) final
Remove unused holes from the zerobuf.
Zero-copy, zero-serialize, zero-hassle protocol buffers.
Definition: Allocator.h:12
size_t getZerobufNumDynamics() const final
Definition: imageJPEG.h:42
size_t getZerobufStaticSize() const final
Definition: imageJPEG.h:40
Base class for all Zerobuf serializable objects.
Definition: Zerobuf.h:28