11#include <promeki/config.h>
12#if PROMEKI_ENABLE_CORE
21PROMEKI_NAMESPACE_BEGIN
65 PROMEKI_DATATYPE(VideoPortRef, DataTypeVideoPortRef, 1)
83 VideoPortRef(VideoConnectorKind kind,
int index);
95 VideoConnectorKind kind() const;
101 void setKind(VideoConnectorKind kind);
104 void setIndex(
int index);
117 String toString() const;
129 static Result<VideoPortRef> fromString(const String &s);
132 bool operator==(const VideoPortRef &other) const;
135 bool operator!=(const VideoPortRef &other)
const {
return !(*
this == other); }
145 bool operator<(
const VideoPortRef &other)
const;
155 Error writeToStream(DataStream &s)
const;
161 template <u
int32_t V>
static Result<VideoPortRef> readFromStream(DataStream &s);
175 PROMEKI_SHARED_FINAL(Impl)
177 VideoConnectorKind kind = VideoConnectorKind::Auto;