17 #ifndef ICOMMONFIXED_HPP_
18 #define ICOMMONFIXED_HPP_
22 #ifdef KAA_USE_CONFIGURATION
27 #include <boost/ref.hpp>
35 class CommonFixed :
public ICommonValue,
public ISchemaDependent {
37 CommonFixed(
const avro::NodePtr & schema);
39 const boost::any getValue()
const {
return boost::cref(value_).get(); }
41 const avro::NodePtr & getSchema()
const {
return schema_; }
43 avro::GenericDatum toAvro()
const;
44 std::string toString()
const;
46 void setValue(
const std::vector<std::uint8_t> &value);
48 avro::NodePtr schema_;
49 std::vector<std::uint8_t> value_;