38 template<
class Archive>
39 void serialize(Archive &ar,
const unsigned int version)
41 ar & boost::serialization::base_object<ModuleProps>(*
this);
50 void applyProperties(
const std::map<std::string, std::variant<int64_t, double, bool, std::string>>& props)
52 for (
const auto& [key, value] : props) {
53 if (key ==
"queueLength" || key ==
"lowerWaterMark") {
54 if (std::holds_alternative<int64_t>(value)) {
57 }
else if (key ==
"tolerance") {
58 if (std::holds_alternative<int64_t>(value)) {
61 }
else if (key ==
"upperWaterMark") {
62 if (std::holds_alternative<int64_t>(value)) {
65 }
else if (key ==
"mmqFps") {
66 if (std::holds_alternative<int64_t>(value)) {
67 mmqFps =
static_cast<int>(std::get<int64_t>(value));
69 }
else if (key ==
"isMapDelayInTime") {
70 if (std::holds_alternative<bool>(value)) {
77 std::variant<int64_t, double, bool, std::string>
getProperty(
const std::string& name)
const
79 if (name ==
"queueLength" || name ==
"lowerWaterMark")
return static_cast<int64_t
>(
lowerWaterMark);
80 if (name ==
"upperWaterMark")
return static_cast<int64_t
>(
upperWaterMark);
81 if (name ==
"mmqFps")
return static_cast<int64_t
>(
mmqFps);
97 void setState(uint64_t ts, uint64_t te);
100 void addInputPin(framemetadata_sp& metadata,
string& pinId);
106 boost::shared_ptr<FrameContainerQueue>
getQue();
112 bool process(frame_container& frames);
CommandType
Definition Command.h:9
virtual size_t getSerializeSize()
Definition Module.h:101