Lexis  1.0.0
Vocabulary of events and shared objects for BBP and HBP software
lookupTable1D.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 LookupTable1D;
16 typedef std::unique_ptr< const LookupTable1D > ConstLookupTable1DPtr;
17 
18 class LookupTable1D : public ::zerobuf::Zerobuf
19 {
20 public:
27  uint8_t* getLut();
28  const uint8_t* getLut() const;
29  std::vector< uint8_t > getLutVector() const;
36  void setLut( uint8_t value[ 1024 ] );
43  void setLut( const std::vector< uint8_t >& value );
44  size_t getLutSize() const;
45 
46  LookupTable1D();
47  LookupTable1D( const std::vector< uint8_t >& lutValue );
48  LookupTable1D( const LookupTable1D& rhs );
49  LookupTable1D( LookupTable1D&& rhs ) noexcept;
50  LookupTable1D( const ::zerobuf::Zerobuf& rhs );
51  explicit LookupTable1D( ::zerobuf::AllocatorPtr allocator );
52  virtual ~LookupTable1D();
53  LookupTable1D& operator = ( const LookupTable1D& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
54  LookupTable1D& operator = ( LookupTable1D&& 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::LookupTable1D"; }
60  static std::string ZEROBUF_TYPE_NAME() { return "lexis::render::LookupTable1D"; }
61  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x0d848e1f0b99a24cull, 0x14547a5e16fd7c04ull ); }
62  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x0d848e1f0b99a24cull, 0x14547a5e16fd7c04ull ); }
63  size_t getZerobufStaticSize() const final { return 1028; }
64  static size_t ZEROBUF_STATIC_SIZE() { return 1028; }
65  size_t getZerobufNumDynamics() const final { return 0; }
66  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
67  static ConstLookupTable1DPtr create( const void* data, const size_t size ) { return ConstLookupTable1DPtr( new LookupTable1D( ::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 }
uint8_t * getLut()
Get a pointer to the uint8_t fixed size array object.
void setLut(uint8_t value[1024])
Set the value of the uint8_t fixed size array object from a uint8_t*.