4 #include <zerobuf/ConstAllocator.h>      5 #include <zerobuf/Vector.h>      6 #include <zerobuf/Zerobuf.h>     18 typedef std::unique_ptr< const Progress > ConstProgressPtr;
    23     typedef ::zerobuf::Vector< char > Operation;
    40     std::string getOperationString() 
const;
    49     float getAmount() 
const;
    58     void compact( 
float threshold = 0.1f ) 
final;
    60     Progress( 
const std::string& operationValue, 
const float& amountValue );
    63     Progress( const ::zerobuf::Zerobuf& rhs );
    64     explicit Progress( ::zerobuf::AllocatorPtr allocator );
    66     Progress& operator = ( 
const Progress& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs ); 
return *
this; }
    70     std::string getSchema() 
const final;
    71     static std::string ZEROBUF_SCHEMA();
    72     std::string getTypeName() 
const final { 
return "lexis::data::detail::Progress"; }
    73     static std::string ZEROBUF_TYPE_NAME() { 
return "lexis::data::detail::Progress"; }
    74     ::zerobuf::uint128_t getTypeIdentifier() 
const final { return ::zerobuf::uint128_t( 0x48dc1196c8ead1d5ull, 0xf0670fa13df40409ull ); }
    75     static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x48dc1196c8ead1d5ull, 0xf0670fa13df40409ull ); }
    76     size_t getZerobufStaticSize() 
const final { 
return 24; }
    77     static size_t ZEROBUF_STATIC_SIZE() { 
return 24; }
    78     size_t getZerobufNumDynamics() 
const final { 
return 1; }
    79     static size_t ZEROBUF_NUM_DYNAMICS() { 
return 1; }
    80     static ConstProgressPtr create( 
const void* data, 
const size_t size ) { 
return ConstProgressPtr( 
new Progress( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
    82     void _parseJSON( 
const Json::Value& json ) 
final;
    83     void _createJSON( Json::Value& json ) 
const final;
 
void setAmount(float value)
Set the Amount value. 
 
Progress::Operation & getOperation()
Get a reference to the Operation dynamic member. 
 
void setOperation(char const *value, size_t size)
Set the value of the Operation dynamic object from a char* and size.