1f010f0a4e
It provides code generators for streamables, services and receivers, but not DObject. It uses Apple's CFNetwork for its sockets and builds with XCode, so it's limited to OS X and iOS. It should be straightforward to replace both to make it cross-platform. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6264 542714f4-19e9-0310-aa3c-eee0fc999fb1
24 lines
630 B
C++
24 lines
630 B
C++
#pragma once
|
|
// Generated by running python boxer.py in this directory
|
|
|
|
#include "presents/Streamable.h"
|
|
#include "presents/streamers/StreamableStreamer.h"
|
|
|
|
namespace presents { namespace box {
|
|
class BoxedFloat : public Streamable{
|
|
public:
|
|
DECLARE_STREAMABLE();
|
|
|
|
float value;
|
|
|
|
static Shared<BoxedFloat> createShared (float value)
|
|
{
|
|
Shared<BoxedFloat> shared(new BoxedFloat);
|
|
shared->value = value;
|
|
return shared;
|
|
}
|
|
|
|
virtual void readObject(ObjectInputStream& in);
|
|
virtual void writeObject(ObjectOutputStream& out) const;
|
|
};
|
|
}} |