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

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

#include "presents/stable.h"
#include "{{name}}.h"
#include "presents/PresentsClient.h"
{{#includes}}
#include "{{this}}"
{{/includes}}

using namespace {{namespace}};

DEFINE_STREAMABLE("{{javaName}}", {{name}});

{{#methods}}
void {{name}}::{{methodName}} ({{clientArguments}})
{
    typedef std::vector< Shared > StreamableList;
    Shared args(new StreamableList);
{{#serviceArguments}}
    args->push_back({{this}});
{{/serviceArguments}}
    args->push_back(getSharedThis());
    client->sendRequest(invOid, invCode, {{-index}}, args);
}

{{/methods}}
Shared<{{name}}> {{name}}::getSharedThis()
{
    return shared_from_this();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy