Wayverb
capsules.h
1 #pragma once
2 
3 #include "combined/capsules.h"
4 
5 #include "cereal/archives/json.hpp"
6 #include "cereal/types/memory.hpp"
7 #include "cereal/types/vector.hpp"
8 
9 template <typename T>
10 template <typename Archive>
11 void wayverb::combined::capsule<T>::serialize(Archive& archive) {
12  archive(cereal::make_nvp("attenuator", attenuator_));
13 }
14 
15 CEREAL_REGISTER_TYPE(
17 CEREAL_REGISTER_POLYMORPHIC_RELATION(
18  wayverb::combined::capsule_base,
19  model::capsule<wayverb::core::attenuator::hrtf>)
20 
21 CEREAL_REGISTER_TYPE(
22  wayverb::combined::capsule<wayverb::core::attenuator::microphone>)
23 CEREAL_REGISTER_POLYMORPHIC_RELATION(
24  wayverb::combined::capsule_base,
25  model::capsule<wayverb::core::attenuator::microphone>)
Definition: capsule_base.cpp:15
Definition: traits.cpp:2
Definition: capsule_base.h:9