3 #ifndef STREAMBASE_STREAMPROPERTIES_H
4 #define STREAMBASE_STREAMPROPERTIES_H
6 #include "StreamBase.hpp"
8 #include "Exceptions.hpp"
11 SB_INTERNAL_FWD(StreamPropertiesUtil)
34 const std::string &
getName()
const {
return _name; }
43 CaptureTransformStrategy getCaptureTransformStrategy()
const {
return _captureStrategy; }
49 const std::string &hexString()
const {
return _hexString; }
52 const size_t hashValue()
const {
return _hashValue; }
54 bool operator <(
const StreamProperties& other)
const {
55 return hashString() < other.hashString();
58 bool operator == (
const StreamProperties& other)
const {
59 return hashString() == other.hashString();
61 bool operator != (
const StreamProperties& other)
const {
62 return !(*
this == other);
67 static StreamProperties fromXml(
const std::string &input) ;
71 StreamProperties(
const std::string &name,
const std::string &hash,
const Schema &schema);
73 StreamProperties(
const std::string &name,
const std::string &hash,
const Schema &schema,
const CaptureTransformStrategy captureStrategy);
75 void init(
const std::string &name);
77 std::string _containerName;
80 std::string _qualifiedName;
82 CaptureTransformStrategy _captureStrategy;
84 std::string _hexString;
85 friend class sb_internal::StreamPropertiesUtil;