text: /*
   * CdbIntValue.h
   *
   *  Created on: 2020/05/20
   *      Author: iizuka
   */
  
  #ifndef TABLE_RECORD_VALUE_CDBINTVALUE_H_
  #define TABLE_RECORD_VALUE_CDBINTVALUE_H_
  
  #include "schema_table/record/table_record_value/AbstractCdbValue.h"
  
  namespace codablecash {
  
  class CdbIntValue : public AbstractCdbValue {
  public:
  	CdbIntValue(const CdbIntValue& inst);
  	CdbIntValue();
  	explicit CdbIntValue(int32_t value);
  	virtual ~CdbIntValue();
  
  	virtual int binarySize() const;
  	virtual void toBinary(ByteBuffer* out) const;
  	virtual void fromBinary(ByteBuffer* in);
  
  	virtual AbstractCdbKey* toKey() const noexcept;
  	virtual AbstractCdbValue* copy() const noexcept;
  
  	int32_t getValue() const noexcept {
  		return this->value;
  	}
  
  private:
  	int32_t value;
  };
  
  } /* namespace codablecash */
  
  #endif /* TABLE_RECORD_VALUE_CDBINTVALUE_H_ */
  