33 lines
725 B
C++
33 lines
725 B
C++
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
|
|
// de Barcelona (UAB).
|
|
//
|
|
// This work is licensed under the terms of the MIT license.
|
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
|
|
|
#pragma once
|
|
|
|
#include "carla/Memory.h"
|
|
#include "carla/sensor/RawData.h"
|
|
|
|
#include <cstdint>
|
|
#include <cstring>
|
|
|
|
namespace carla {
|
|
namespace sensor {
|
|
|
|
class SensorData;
|
|
|
|
namespace s11n {
|
|
|
|
/// Dummy serializer that blocks all the data. Use it as serializer for
|
|
/// client-side sensors that do not send any data.
|
|
class NoopSerializer {
|
|
public:
|
|
|
|
[[ noreturn ]] static SharedPtr<SensorData> Deserialize(RawData &&data);
|
|
};
|
|
|
|
} // namespace s11n
|
|
} // namespace sensor
|
|
} // namespace carla
|