Lexis  1.0.0
Vocabulary of events and shared objects for BBP and HBP software
request.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 
13 class Request;
14 typedef std::unique_ptr< const Request > ConstRequestPtr;
15 
16 class Request : public ::zerobuf::Zerobuf
17 {
18 public:
19  ::zerobuf::uint128_t getEvent() const;
26  void setEvent( ::zerobuf::uint128_t value );
27 
28  Request();
29  Request( const ::zerobuf::uint128_t& eventValue );
30  Request( const Request& rhs );
31  Request( Request&& rhs ) noexcept;
32  Request( const ::zerobuf::Zerobuf& rhs );
33  explicit Request( ::zerobuf::AllocatorPtr allocator );
34  virtual ~Request();
35  Request& operator = ( const Request& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
36  Request& operator = ( Request&& rhs );
37 
38  // Introspection
39  std::string getSchema() const final;
40  static std::string ZEROBUF_SCHEMA();
41  std::string getTypeName() const final { return "lexis::Request"; }
42  static std::string ZEROBUF_TYPE_NAME() { return "lexis::Request"; }
43  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xc6b737f5a77892eaull, 0xd3126a92810c9e6eull ); }
44  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0xc6b737f5a77892eaull, 0xd3126a92810c9e6eull ); }
45  size_t getZerobufStaticSize() const final { return 20; }
46  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
47  size_t getZerobufNumDynamics() const final { return 0; }
48  static size_t ZEROBUF_NUM_DYNAMICS() { return 0; }
49  static ConstRequestPtr create( const void* data, const size_t size ) { return ConstRequestPtr( new Request( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
50 
51  void _parseJSON( const Json::Value& json ) final;
52  void _createJSON( Json::Value& json ) const final;
53 };
54 
55 }
void setEvent(::zerobuf::uint128_t value)
Set the value of the ::zerobuf::uint128_t fixed size member.