Skip to content
Snippets Groups Projects
Commit b8059995 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

complete ParticleCoreShellItem's serialization

parent 34d059cd
No related branches found
No related tags found
1 merge request!573Sample item serialization
......@@ -38,6 +38,15 @@ ParticleCoreShellItem::ParticleCoreShellItem()
{
}
void ParticleCoreShellItem::serialize(Serializer& s)
{
s.assertVersion(0);
s.rw(m_abundance);
s.rw(m_position);
s.rw("core", m_core);
s.rw("shell", m_shell);
}
std::unique_ptr<ParticleCoreShell> ParticleCoreShellItem::createParticleCoreShell() const
{
std::unique_ptr<Particle> P_core{};
......
......@@ -26,6 +26,7 @@ class MaterialModel;
class ParticleCoreShellItem : public ItemWithParticles {
public:
ParticleCoreShellItem();
void serialize(Serializer& s) override;
std::unique_ptr<ParticleCoreShell> createParticleCoreShell() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment