Lexis  1.1.0
Vocabulary of events and shared objects for BBP and HBP software
selections.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 data
13 {
14 
15 class SelectedIDs;
16 typedef std::unique_ptr< const SelectedIDs > ConstSelectedIDsPtr;
17 
18 class SelectedIDs : public ::zerobuf::Zerobuf
19 {
20 public:
21  typedef ::zerobuf::Vector< uint32_t > Ids;
28  SelectedIDs::Ids& getIds();
29  const SelectedIDs::Ids& getIds() const;
37  void setIds( uint32_t const * value, size_t size );
38  std::vector< uint32_t > getIdsVector() const;
45  void setIds( const std::vector< uint32_t >& value );
46 
47  void compact( float threshold = 0.1f ) final;
48  SelectedIDs();
49  SelectedIDs( const std::vector< uint32_t >& idsValue );
50  SelectedIDs( const SelectedIDs& rhs );
51  SelectedIDs( SelectedIDs&& rhs ) noexcept;
52  SelectedIDs( const ::zerobuf::Zerobuf& rhs );
53  explicit SelectedIDs( ::zerobuf::AllocatorPtr allocator );
54  virtual ~SelectedIDs();
55  SelectedIDs& operator = ( const SelectedIDs& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
56  SelectedIDs& operator = ( SelectedIDs&& rhs );
57 
58  // Introspection
59  std::string getSchema() const final;
60  static std::string ZEROBUF_SCHEMA();
61  std::string getTypeName() const final { return "lexis::data::SelectedIDs"; }
62  static std::string ZEROBUF_TYPE_NAME() { return "lexis::data::SelectedIDs"; }
63  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0xa7774bb9e8d7a594ull, 0xa16f45510ff3edc0ull ); }
64  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0xa7774bb9e8d7a594ull, 0xa16f45510ff3edc0ull ); }
65  size_t getZerobufStaticSize() const final { return 20; }
66  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
67  size_t getZerobufNumDynamics() const final { return 1; }
68  static size_t ZEROBUF_NUM_DYNAMICS() { return 1; }
69  static ConstSelectedIDsPtr create( const void* data, const size_t size ) { return ConstSelectedIDsPtr( new SelectedIDs( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
70 
71  void _parseJSON( const Json::Value& json ) final;
72  void _createJSON( Json::Value& json ) const final;
73 
74 private:
75  Ids _ids;
76 };
77 
78 class ToggleIDRequest;
79 typedef std::unique_ptr< const ToggleIDRequest > ConstToggleIDRequestPtr;
80 
81 class ToggleIDRequest : public ::zerobuf::Zerobuf
82 {
83 public:
84  typedef ::zerobuf::Vector< uint32_t > Ids;
91  ToggleIDRequest::Ids& getIds();
92  const ToggleIDRequest::Ids& getIds() const;
100  void setIds( uint32_t const * value, size_t size );
101  std::vector< uint32_t > getIdsVector() const;
108  void setIds( const std::vector< uint32_t >& value );
109 
110  void compact( float threshold = 0.1f ) final;
111  ToggleIDRequest();
112  ToggleIDRequest( const std::vector< uint32_t >& idsValue );
113  ToggleIDRequest( const ToggleIDRequest& rhs );
114  ToggleIDRequest( ToggleIDRequest&& rhs ) noexcept;
115  ToggleIDRequest( const ::zerobuf::Zerobuf& rhs );
116  explicit ToggleIDRequest( ::zerobuf::AllocatorPtr allocator );
117  virtual ~ToggleIDRequest();
118  ToggleIDRequest& operator = ( const ToggleIDRequest& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); return *this; }
119  ToggleIDRequest& operator = ( ToggleIDRequest&& rhs );
120 
121  // Introspection
122  std::string getSchema() const final;
123  static std::string ZEROBUF_SCHEMA();
124  std::string getTypeName() const final { return "lexis::data::ToggleIDRequest"; }
125  static std::string ZEROBUF_TYPE_NAME() { return "lexis::data::ToggleIDRequest"; }
126  ::zerobuf::uint128_t getTypeIdentifier() const final { return ::zerobuf::uint128_t( 0x4f6e2d49d6e081e6ull, 0x68f7357a64a72297ull ); }
127  static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x4f6e2d49d6e081e6ull, 0x68f7357a64a72297ull ); }
128  size_t getZerobufStaticSize() const final { return 20; }
129  static size_t ZEROBUF_STATIC_SIZE() { return 20; }
130  size_t getZerobufNumDynamics() const final { return 1; }
131  static size_t ZEROBUF_NUM_DYNAMICS() { return 1; }
132  static ConstToggleIDRequestPtr create( const void* data, const size_t size ) { return ConstToggleIDRequestPtr( new ToggleIDRequest( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
133 
134  void _parseJSON( const Json::Value& json ) final;
135  void _createJSON( Json::Value& json ) const final;
136 
137 private:
138  Ids _ids;
139 };
140 
141 }
142 }
143 namespace zerobuf
144 {
145 }
146 
void setIds(uint32_t const *value, size_t size)
Set the value of the Ids dynamic object from a uint32_t* and size.
SelectedIDs::Ids & getIds()
Get a reference to the Ids dynamic member.