All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.threerings.presents.tools.cpp.streamable_h.mustache Maven / Gradle / Ivy

#pragma once

#include "presents/Streamable.h"
#include "presents/ObjectInputStream.h"
#include "presents/ObjectOutputStream.h"
#include "presents/streamers/StreamableStreamer.h"

{{#includes}}
#include "{{this}}"
{{/includes}}

{{#namespaces}}namespace {{this}} { {{/namespaces}}

class {{name}} : public {{super}} {
public:
    DECLARE_STREAMABLE();

{{#fields}}
    {{type.type}} {{name}};
{{/fields}}

    virtual void readObject(ObjectInputStream& in);
    virtual void writeObject(ObjectOutputStream& out) const;
};

{{#namespaces}}}{{/namespaces}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy