std::vector<std::vector<std::vector<std::string>>>,
std::vector<std::vector<OC::OCRepresentation>>,
- std::vector<std::vector<std::vector<OC::OCRepresentation>>>
+ std::vector<std::vector<std::vector<OC::OCRepresentation>>>,
+
+ // used for binary data type
+ std::vector<uint8_t>
> AttributeValue;
enum class AttributeType
Boolean,
String,
OCRepresentation,
- Vector
+ Vector,
+ Binary
};
template<typename T>
BOOST_STATIC_CONSTEXPR AttributeType type = AttributeType::OCRepresentation;
};
+ template<>
+ struct AttributeTypeConvert<std::vector<uint8_t>>
+ {
+ constexpr static AttributeType type = AttributeType::Binary;
+ };
+
std::ostream& operator << (std::ostream& os, const AttributeType at);
}
#endif // OC_ATTRIBUTEVALUE_H_