4 #include <zerobuf/ConstAllocator.h> 5 #include <zerobuf/Vector.h> 6 #include <zerobuf/Zerobuf.h> 16 typedef std::unique_ptr< const SelectedIDs > ConstSelectedIDsPtr;
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 );
47 void compact(
float threshold = 0.1f )
final;
49 SelectedIDs(
const std::vector< uint32_t >& idsValue );
53 explicit SelectedIDs( ::zerobuf::AllocatorPtr allocator );
55 SelectedIDs& operator = (
const SelectedIDs& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
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 )))); }
71 void _parseJSON(
const Json::Value& json )
final;
72 void _createJSON( Json::Value& json )
const final;
79 typedef std::unique_ptr< const ToggleIDRequest > ConstToggleIDRequestPtr;
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 );
110 void compact(
float threshold = 0.1f )
final;
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 )))); }
134 void _parseJSON(
const Json::Value& json )
final;
135 void _createJSON( Json::Value& json )
const final;
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.