#include "wire_Sensor.hpp"
#include "../obapi_runtime.hpp"
#include <type_traits>
static_assert(std::is_same<decltype(::M_Sensor::SensorPresetType::Id), std::string>::value, "M_Sensor::SensorPresetType field Id differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorPresetType::Name), std::string>::value, "M_Sensor::SensorPresetType field Name differs from the data model");
static_assert(std::is_same<::M_Sensor::SensorPresetListType, std::vector<::M_Sensor::SensorPresetType>>::value, "typedef M_Sensor::SensorPresetListType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::TypeOfSensor), uint32_t>::value, "M_Sensor::SensorSettingsType field TypeOfSensor differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::SensorName), std::string>::value, "M_Sensor::SensorSettingsType field SensorName differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::SensorTypeName), std::string>::value, "M_Sensor::SensorSettingsType field SensorTypeName differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::Manufacturer), std::string>::value, "M_Sensor::SensorSettingsType field Manufacturer differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDetectionRangeSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDetectionRangeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDetectionSizeSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDetectionSizeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsSensorTrackingSupported), bool>::value, "M_Sensor::SensorSettingsType field IsSensorTrackingSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDeleteSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDeleteSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDeactivateSensorSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDeactivateSensorSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsLockOnSupported), bool>::value, "M_Sensor::SensorSettingsType field IsLockOnSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::MinimumRange), std::vector<double>>::value, "M_Sensor::SensorSettingsType field MinimumRange differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::MaximumRange), std::vector<double>>::value, "M_Sensor::SensorSettingsType field MaximumRange differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::Presets), std::vector<::M_Sensor::SensorPresetType>>::value, "M_Sensor::SensorSettingsType field Presets differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::SensorSettingsType field AdditionalInfo differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::OperationStatus), ::M_Common::OperationStatusType>::value, "M_Sensor::SensorStatusType field OperationStatus differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::SensorPosition), std::vector<::M_Common::PositionType>>::value, "M_Sensor::SensorStatusType field SensorPosition differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::ActivePreset), std::vector<std::string>>::value, "M_Sensor::SensorStatusType field ActivePreset differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::IsDeactivated), bool>::value, "M_Sensor::SensorStatusType field IsDeactivated differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChannelType::Id), uint32_t>::value, "M_Sensor::ChannelType field Id differs from the data model");
static_assert(std::is_same<::M_Sensor::ChannelListType, std::vector<::M_Sensor::ChannelType>>::value, "typedef M_Sensor::ChannelListType differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Unknown) == 0u, "enum value M_Sensor::CoverageModeKind::Type::Unknown differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Covered) == 1u, "enum value M_Sensor::CoverageModeKind::Type::Covered differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Uncovered) == 2u, "enum value M_Sensor::CoverageModeKind::Type::Uncovered differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Blocked) == 3u, "enum value M_Sensor::CoverageModeKind::Type::Blocked differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Suppressed) == 4u, "enum value M_Sensor::CoverageModeKind::Type::Suppressed differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::EmissionControl) == 5u, "enum value M_Sensor::CoverageModeKind::Type::EmissionControl differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::CoverageMode), ::M_Sensor::CoverageModeKind::Type>::value, "M_Sensor::SensorCoverageType field CoverageMode differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::Channels), std::vector<::M_Sensor::ChannelType>>::value, "M_Sensor::SensorCoverageType field Channels differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::Polygon), std::vector<::M_Common::MultiPositionType>>::value, "M_Sensor::SensorCoverageType field Polygon differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave) == 0u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::SourceWave) == 1u, "enum value M_Sensor::WaveDetectionKind::Type::SourceWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave_SourceWave) == 2u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave_SourceWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave_No_SourceWave) == 3u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave_No_SourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Azimuth), double>::value, "M_Sensor::WaveType field Azimuth differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Elevation), std::vector<double>>::value, "M_Sensor::WaveType field Elevation differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Amplitude), std::vector<double>>::value, "M_Sensor::WaveType field Amplitude differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Confidence), std::vector<double>>::value, "M_Sensor::WaveType field Confidence differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::DetectionTime), std::vector<::M_Common::TimeType>>::value, "M_Sensor::WaveType field DetectionTime differs from the data model");
static_assert(std::is_same<::M_Sensor::WaveOptionalType, std::vector<::M_Sensor::WaveType>>::value, "typedef M_Sensor::WaveOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::WaveDetection), ::M_Sensor::WaveDetectionKind::Type>::value, "M_Sensor::AcousticDetectionType field WaveDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::MachWave), std::vector<::M_Sensor::WaveType>>::value, "M_Sensor::AcousticDetectionType field MachWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::SourceWave), std::vector<::M_Sensor::WaveType>>::value, "M_Sensor::AcousticDetectionType field SourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::TimeBetweenMachAndSourceWave), std::vector<::M_Common::TimeIntervalType>>::value, "M_Sensor::AcousticDetectionType field TimeBetweenMachAndSourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::WaveWidth), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field WaveWidth differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::TrajectoryDistance), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field TrajectoryDistance differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::SourceDistance), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field SourceDistance differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::NumberOfDetections), std::vector<uint32_t>>::value, "M_Sensor::AcousticDetectionType field NumberOfDetections differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::Azimuth1), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field Azimuth1 differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::Azimuth2), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field Azimuth2 differs from the data model");
static_assert(std::is_same<::M_Sensor::AcousticDetectionOptionalType, std::vector<::M_Sensor::AcousticDetectionType>>::value, "typedef M_Sensor::AcousticDetectionOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Position), ::M_Common::PixelPoint2DType>::value, "M_Sensor::FlashDetectionType field Position differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Size), ::M_Common::PixelRectSizeType>::value, "M_Sensor::FlashDetectionType field Size differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Timestamp), ::M_Common::TimeType>::value, "M_Sensor::FlashDetectionType field Timestamp differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FrameIndex), std::vector<uint32_t>>::value, "M_Sensor::FlashDetectionType field FrameIndex differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FlashDuration), double>::value, "M_Sensor::FlashDetectionType field FlashDuration differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::ScaledIntensity), double>::value, "M_Sensor::FlashDetectionType field ScaledIntensity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::ScaledIntensityRate), double>::value, "M_Sensor::FlashDetectionType field ScaledIntensityRate differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Confidence), double>::value, "M_Sensor::FlashDetectionType field Confidence differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FlashType), int32_t>::value, "M_Sensor::FlashDetectionType field FlashType differs from the data model");
static_assert(std::is_same<::M_Sensor::FlashDetectionOptionalType, std::vector<::M_Sensor::FlashDetectionType>>::value, "typedef M_Sensor::FlashDetectionOptionalType differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Initial) == 0u, "enum value M_Sensor::LwsClassification::Type::Initial differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::In_Progress) == 1u, "enum value M_Sensor::LwsClassification::Type::In_Progress differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Unknown) == 2u, "enum value M_Sensor::LwsClassification::Type::Unknown differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Single_Pulse) == 3u, "enum value M_Sensor::LwsClassification::Type::Single_Pulse differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Multiple_Pulse) == 4u, "enum value M_Sensor::LwsClassification::Type::Multiple_Pulse differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Beam_Rider) == 5u, "enum value M_Sensor::LwsClassification::Type::Beam_Rider differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Designator) == 6u, "enum value M_Sensor::LwsClassification::Type::Designator differs from the data model");
static_assert(std::is_same<::M_Sensor::LwsClassificationOptionalType, std::vector<::M_Sensor::LwsClassification::Type>>::value, "typedef M_Sensor::LwsClassificationOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::TypeOfDetection), uint32_t>::value, "M_Sensor::ChildDetectionType field TypeOfDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::Identity), uint32_t>::value, "M_Sensor::ChildDetectionType field Identity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::Classification), std::vector<::M_Common::ObjectClassificationType>>::value, "M_Sensor::ChildDetectionType field Classification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectPositionList), std::vector<::M_Common::PositionType>>::value, "M_Sensor::ChildDetectionType field ObjectPositionList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectVelocityList), std::vector<::M_Common::LinearVelocityType>>::value, "M_Sensor::ChildDetectionType field ObjectVelocityList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectDimensions), std::vector<::M_Common::ObjectDimensionsType>>::value, "M_Sensor::ChildDetectionType field ObjectDimensions differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::RangeMeasurementList), std::vector<::M_LaserRangeFinder::RangeMeasurementType>>::value, "M_Sensor::ChildDetectionType field RangeMeasurementList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::AcousticDetection), std::vector<::M_Sensor::AcousticDetectionType>>::value, "M_Sensor::ChildDetectionType field AcousticDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::FlashDetection), std::vector<::M_Sensor::FlashDetectionType>>::value, "M_Sensor::ChildDetectionType field FlashDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::LwsClassification), std::vector<::M_Sensor::LwsClassification::Type>>::value, "M_Sensor::ChildDetectionType field LwsClassification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::VideoTrackedObject), std::vector<::M_VideoTracker::VtObjectType>>::value, "M_Sensor::ChildDetectionType field VideoTrackedObject differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::IsLockedOn), std::vector<bool>>::value, "M_Sensor::ChildDetectionType field IsLockedOn differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::ChildDetectionType field AdditionalInfo differs from the data model");
static_assert(std::is_same<::M_Sensor::ChildDetectionListType, std::vector<::M_Sensor::ChildDetectionType>>::value, "typedef M_Sensor::ChildDetectionListType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::TypeOfDetection), uint32_t>::value, "M_Sensor::SensorDetectionType field TypeOfDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::Identity), uint32_t>::value, "M_Sensor::SensorDetectionType field Identity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::Classification), std::vector<::M_Common::ObjectClassificationType>>::value, "M_Sensor::SensorDetectionType field Classification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectPositionList), std::vector<::M_Common::PositionType>>::value, "M_Sensor::SensorDetectionType field ObjectPositionList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectVelocityList), std::vector<::M_Common::LinearVelocityType>>::value, "M_Sensor::SensorDetectionType field ObjectVelocityList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectDimensions), std::vector<::M_Common::ObjectDimensionsType>>::value, "M_Sensor::SensorDetectionType field ObjectDimensions differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::RangeMeasurementList), std::vector<::M_LaserRangeFinder::RangeMeasurementType>>::value, "M_Sensor::SensorDetectionType field RangeMeasurementList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::AcousticDetection), std::vector<::M_Sensor::AcousticDetectionType>>::value, "M_Sensor::SensorDetectionType field AcousticDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::FlashDetection), std::vector<::M_Sensor::FlashDetectionType>>::value, "M_Sensor::SensorDetectionType field FlashDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::LwsClassification), std::vector<::M_Sensor::LwsClassification::Type>>::value, "M_Sensor::SensorDetectionType field LwsClassification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::VideoTrackedObject), std::vector<::M_VideoTracker::VtObjectType>>::value, "M_Sensor::SensorDetectionType field VideoTrackedObject differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::IsLockedOn), std::vector<bool>>::value, "M_Sensor::SensorDetectionType field IsLockedOn differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ChildDetections), std::vector<::M_Sensor::ChildDetectionType>>::value, "M_Sensor::SensorDetectionType field ChildDetections differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::SensorDetectionType field AdditionalInfo differs from the data model");
namespace M_Sensor {
void obapi_put(::obapi::Writer& w, SensorPresetType const& v) {
::obapi::put(w, v.Id);
::obapi::put(w, v.Name);
}
void obapi_get(::obapi::Reader& r, SensorPresetType& v) {
::obapi::get(r, v.Id);
::obapi::get(r, v.Name);
}
void obapi_put(::obapi::Writer& w, SensorSettingsType const& v) {
::obapi::put(w, v.TypeOfSensor);
::obapi::put(w, v.SensorName);
::obapi::put(w, v.SensorTypeName);
::obapi::put(w, v.Manufacturer);
::obapi::put(w, v.IsDetectionRangeSupported);
::obapi::put(w, v.IsDetectionSizeSupported);
::obapi::put(w, v.IsSensorTrackingSupported);
::obapi::put(w, v.IsDeleteSupported);
::obapi::put(w, v.IsDeactivateSensorSupported);
::obapi::put(w, v.IsLockOnSupported);
::obapi::put(w, v.MinimumRange);
::obapi::put(w, v.MaximumRange);
::obapi::put(w, v.Presets);
::obapi::put(w, v.AdditionalInfo);
}
void obapi_get(::obapi::Reader& r, SensorSettingsType& v) {
::obapi::get(r, v.TypeOfSensor);
::obapi::get(r, v.SensorName);
::obapi::get(r, v.SensorTypeName);
::obapi::get(r, v.Manufacturer);
::obapi::get(r, v.IsDetectionRangeSupported);
::obapi::get(r, v.IsDetectionSizeSupported);
::obapi::get(r, v.IsSensorTrackingSupported);
::obapi::get(r, v.IsDeleteSupported);
::obapi::get(r, v.IsDeactivateSensorSupported);
::obapi::get(r, v.IsLockOnSupported);
::obapi::get(r, v.MinimumRange);
::obapi::get(r, v.MaximumRange);
::obapi::get(r, v.Presets);
::obapi::get(r, v.AdditionalInfo);
}
void obapi_put(::obapi::Writer& w, SensorStatusType const& v) {
::obapi::put(w, v.OperationStatus);
::obapi::put(w, v.SensorPosition);
::obapi::put(w, v.ActivePreset);
::obapi::put(w, v.IsDeactivated);
}
void obapi_get(::obapi::Reader& r, SensorStatusType& v) {
::obapi::get(r, v.OperationStatus);
::obapi::get(r, v.SensorPosition);
::obapi::get(r, v.ActivePreset);
::obapi::get(r, v.IsDeactivated);
}
void obapi_put(::obapi::Writer& w, ChannelType const& v) {
::obapi::put(w, v.Id);
}
void obapi_get(::obapi::Reader& r, ChannelType& v) {
::obapi::get(r, v.Id);
}
void obapi_put(::obapi::Writer& w, SensorCoverageType const& v) {
::obapi::put(w, v.CoverageMode);
::obapi::put(w, v.Channels);
::obapi::put(w, v.Polygon);
}
void obapi_get(::obapi::Reader& r, SensorCoverageType& v) {
::obapi::get(r, v.CoverageMode);
::obapi::get(r, v.Channels);
::obapi::get(r, v.Polygon);
}
void obapi_put(::obapi::Writer& w, WaveType const& v) {
::obapi::put(w, v.Azimuth);
::obapi::put(w, v.Elevation);
::obapi::put(w, v.Amplitude);
::obapi::put(w, v.Confidence);
::obapi::put(w, v.DetectionTime);
}
void obapi_get(::obapi::Reader& r, WaveType& v) {
::obapi::get(r, v.Azimuth);
::obapi::get(r, v.Elevation);
::obapi::get(r, v.Amplitude);
::obapi::get(r, v.Confidence);
::obapi::get(r, v.DetectionTime);
}
void obapi_put(::obapi::Writer& w, AcousticDetectionType const& v) {
::obapi::put(w, v.WaveDetection);
::obapi::put(w, v.MachWave);
::obapi::put(w, v.SourceWave);
::obapi::put(w, v.TimeBetweenMachAndSourceWave);
::obapi::put(w, v.WaveWidth);
::obapi::put(w, v.TrajectoryDistance);
::obapi::put(w, v.SourceDistance);
::obapi::put(w, v.NumberOfDetections);
::obapi::put(w, v.Azimuth1);
::obapi::put(w, v.Azimuth2);
}
void obapi_get(::obapi::Reader& r, AcousticDetectionType& v) {
::obapi::get(r, v.WaveDetection);
::obapi::get(r, v.MachWave);
::obapi::get(r, v.SourceWave);
::obapi::get(r, v.TimeBetweenMachAndSourceWave);
::obapi::get(r, v.WaveWidth);
::obapi::get(r, v.TrajectoryDistance);
::obapi::get(r, v.SourceDistance);
::obapi::get(r, v.NumberOfDetections);
::obapi::get(r, v.Azimuth1);
::obapi::get(r, v.Azimuth2);
}
void obapi_put(::obapi::Writer& w, FlashDetectionType const& v) {
::obapi::put(w, v.Position);
::obapi::put(w, v.Size);
::obapi::put(w, v.Timestamp);
::obapi::put(w, v.FrameIndex);
::obapi::put(w, v.FlashDuration);
::obapi::put(w, v.ScaledIntensity);
::obapi::put(w, v.ScaledIntensityRate);
::obapi::put(w, v.Confidence);
::obapi::put(w, v.FlashType);
}
void obapi_get(::obapi::Reader& r, FlashDetectionType& v) {
::obapi::get(r, v.Position);
::obapi::get(r, v.Size);
::obapi::get(r, v.Timestamp);
::obapi::get(r, v.FrameIndex);
::obapi::get(r, v.FlashDuration);
::obapi::get(r, v.ScaledIntensity);
::obapi::get(r, v.ScaledIntensityRate);
::obapi::get(r, v.Confidence);
::obapi::get(r, v.FlashType);
}
void obapi_put(::obapi::Writer& w, ChildDetectionType const& v) {
::obapi::put(w, v.TypeOfDetection);
::obapi::put(w, v.Identity);
::obapi::put(w, v.Classification);
::obapi::put(w, v.ObjectPositionList);
::obapi::put(w, v.ObjectVelocityList);
::obapi::put(w, v.ObjectDimensions);
::obapi::put(w, v.RangeMeasurementList);
::obapi::put(w, v.AcousticDetection);
::obapi::put(w, v.FlashDetection);
::obapi::put(w, v.LwsClassification);
::obapi::put(w, v.VideoTrackedObject);
::obapi::put(w, v.IsLockedOn);
::obapi::put(w, v.AdditionalInfo);
}
void obapi_get(::obapi::Reader& r, ChildDetectionType& v) {
::obapi::get(r, v.TypeOfDetection);
::obapi::get(r, v.Identity);
::obapi::get(r, v.Classification);
::obapi::get(r, v.ObjectPositionList);
::obapi::get(r, v.ObjectVelocityList);
::obapi::get(r, v.ObjectDimensions);
::obapi::get(r, v.RangeMeasurementList);
::obapi::get(r, v.AcousticDetection);
::obapi::get(r, v.FlashDetection);
::obapi::get(r, v.LwsClassification);
::obapi::get(r, v.VideoTrackedObject);
::obapi::get(r, v.IsLockedOn);
::obapi::get(r, v.AdditionalInfo);
}
void obapi_put(::obapi::Writer& w, SensorDetectionType const& v) {
::obapi::put(w, v.TypeOfDetection);
::obapi::put(w, v.Identity);
::obapi::put(w, v.Classification);
::obapi::put(w, v.ObjectPositionList);
::obapi::put(w, v.ObjectVelocityList);
::obapi::put(w, v.ObjectDimensions);
::obapi::put(w, v.RangeMeasurementList);
::obapi::put(w, v.AcousticDetection);
::obapi::put(w, v.FlashDetection);
::obapi::put(w, v.LwsClassification);
::obapi::put(w, v.VideoTrackedObject);
::obapi::put(w, v.IsLockedOn);
::obapi::put(w, v.ChildDetections);
::obapi::put(w, v.AdditionalInfo);
}
void obapi_get(::obapi::Reader& r, SensorDetectionType& v) {
::obapi::get(r, v.TypeOfDetection);
::obapi::get(r, v.Identity);
::obapi::get(r, v.Classification);
::obapi::get(r, v.ObjectPositionList);
::obapi::get(r, v.ObjectVelocityList);
::obapi::get(r, v.ObjectDimensions);
::obapi::get(r, v.RangeMeasurementList);
::obapi::get(r, v.AcousticDetection);
::obapi::get(r, v.FlashDetection);
::obapi::get(r, v.LwsClassification);
::obapi::get(r, v.VideoTrackedObject);
::obapi::get(r, v.IsLockedOn);
::obapi::get(r, v.ChildDetections);
::obapi::get(r, v.AdditionalInfo);
}
}
namespace {
struct ServiceCallbacks final : ::M_Sensor::IService {
::obapi::Dispatcher dispatcher;
void CmdIsSensorAlive() override {
::obapi::Writer w;
dispatcher.dispatch(0u, w);
}
void CmdDeleteTracks(::M_Common::ObjectIdListType const& KeyIdList) override {
::obapi::Writer w;
::obapi::put(w, KeyIdList);
dispatcher.dispatch(1u, w);
}
void CmdDeleteAllTracks() override {
::obapi::Writer w;
dispatcher.dispatch(2u, w);
}
void CmdDeactivateSensor(bool Deactivate) override {
::obapi::Writer w;
::obapi::put(w, Deactivate);
dispatcher.dispatch(3u, w);
}
void ConfigSensorCoverage(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorCoverageType const& Coverage, bool IsRemoved) override {
::obapi::Writer w;
::obapi::put(w, KeyId);
::obapi::put(w, Coverage);
::obapi::put(w, IsRemoved);
dispatcher.dispatch(4u, w);
}
void CmdSetPreset(::M_Common::ObjectIdOptionalType const& Preset) override {
::obapi::Writer w;
::obapi::put(w, Preset);
dispatcher.dispatch(5u, w);
}
void CmdLockOnTracks(::M_Common::ObjectIdListType const& KeyIdList) override {
::obapi::Writer w;
::obapi::put(w, KeyIdList);
dispatcher.dispatch(6u, w);
}
};
struct ClientCallbacks final : ::M_Sensor::IClient {
::obapi::Dispatcher dispatcher;
void ReportSensorSettings(::M_Sensor::SensorSettingsType const& Settings) override {
::obapi::Writer w;
::obapi::put(w, Settings);
dispatcher.dispatch(0u, w);
}
void ReportSensorStatus(::M_Sensor::SensorStatusType const& Status, bool IsRemoved) override {
::obapi::Writer w;
::obapi::put(w, Status);
::obapi::put(w, IsRemoved);
dispatcher.dispatch(1u, w);
}
void ReportSensorCoverage(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorCoverageType const& Coverage, bool IsRemoved) override {
::obapi::Writer w;
::obapi::put(w, KeyId);
::obapi::put(w, Coverage);
::obapi::put(w, IsRemoved);
dispatcher.dispatch(2u, w);
}
void EventSensorDetection(::M_Common::ObjectIdType const& DetectionId, ::M_Sensor::SensorDetectionType const& Detection) override {
::obapi::Writer w;
::obapi::put(w, DetectionId);
::obapi::put(w, Detection);
dispatcher.dispatch(3u, w);
}
void ReportSensorTrack(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorDetectionType const& Track, bool IsRemoved) override {
::obapi::Writer w;
::obapi::put(w, KeyId);
::obapi::put(w, Track);
::obapi::put(w, IsRemoved);
dispatcher.dispatch(4u, w);
}
};
void service_send(::obapi::Holder<::M_Sensor::Service, ServiceCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
switch (op) {
case 0u: {
::M_Sensor::SensorSettingsType Settings{};
::obapi::get(r, Settings);
r.finish();
h.endpoint->ReportSensorSettings(Settings);
return;
}
case 1u: {
::M_Sensor::SensorStatusType Status{};
::obapi::get(r, Status);
bool IsRemoved{};
::obapi::get(r, IsRemoved);
r.finish();
h.endpoint->ReportSensorStatus(Status, IsRemoved);
return;
}
case 2u: {
::M_Common::ObjectIdType KeyId{};
::obapi::get(r, KeyId);
::M_Sensor::SensorCoverageType Coverage{};
::obapi::get(r, Coverage);
bool IsRemoved{};
::obapi::get(r, IsRemoved);
r.finish();
h.endpoint->ReportSensorCoverage(KeyId, Coverage, IsRemoved);
return;
}
case 3u: {
::M_Common::ObjectIdType DetectionId{};
::obapi::get(r, DetectionId);
::M_Sensor::SensorDetectionType Detection{};
::obapi::get(r, Detection);
r.finish();
h.endpoint->EventSensorDetection(DetectionId, Detection);
return;
}
case 4u: {
::M_Common::ObjectIdType KeyId{};
::obapi::get(r, KeyId);
::M_Sensor::SensorDetectionType Track{};
::obapi::get(r, Track);
bool IsRemoved{};
::obapi::get(r, IsRemoved);
r.finish();
h.endpoint->ReportSensorTrack(KeyId, Track, IsRemoved);
return;
}
default: throw ::obapi::UnknownOp(op);
}
}
void client_send(::obapi::Holder<::M_Sensor::Client, ClientCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
switch (op) {
case 0u: {
r.finish();
h.endpoint->CmdIsSensorAlive();
return;
}
case 1u: {
::M_Common::ObjectIdListType KeyIdList{};
::obapi::get(r, KeyIdList);
r.finish();
h.endpoint->CmdDeleteTracks(KeyIdList);
return;
}
case 2u: {
r.finish();
h.endpoint->CmdDeleteAllTracks();
return;
}
case 3u: {
bool Deactivate{};
::obapi::get(r, Deactivate);
r.finish();
h.endpoint->CmdDeactivateSensor(Deactivate);
return;
}
case 4u: {
::M_Common::ObjectIdType KeyId{};
::obapi::get(r, KeyId);
::M_Sensor::SensorCoverageType Coverage{};
::obapi::get(r, Coverage);
bool IsRemoved{};
::obapi::get(r, IsRemoved);
r.finish();
h.endpoint->ConfigSensorCoverage(KeyId, Coverage, IsRemoved);
return;
}
case 5u: {
::M_Common::ObjectIdOptionalType Preset{};
::obapi::get(r, Preset);
r.finish();
h.endpoint->CmdSetPreset(Preset);
return;
}
case 6u: {
::M_Common::ObjectIdListType KeyIdList{};
::obapi::get(r, KeyIdList);
r.finish();
h.endpoint->CmdLockOnTracks(KeyIdList);
return;
}
default: throw ::obapi::UnknownOp(op);
}
}
}
extern "C" const obapi_vtable obapi_Sensor_service_vtable = ::obapi::Endpoint<::M_Sensor::Service, ServiceCallbacks, &service_send, false>::vtable("M_Sensor", "Service");
extern "C" const obapi_vtable obapi_Sensor_client_vtable = ::obapi::Endpoint<::M_Sensor::Client, ClientCallbacks, &client_send, true>::vtable("M_Sensor", "Client");