Generate EntryEvent to get things building again. Add EntryUpdatedEvent for completeness.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6282 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
#include "presents/stable.h"
|
||||||
|
#include "EntryEvent.h"
|
||||||
|
|
||||||
|
using namespace presents::dobj;
|
||||||
|
|
||||||
|
DEFINE_STREAMABLE("com.threerings.presents.dobj.EntryEvent", EntryEvent);
|
||||||
|
|
||||||
|
void EntryEvent::readObject (ObjectInputStream& in)
|
||||||
|
{
|
||||||
|
presents::dobj::NamedEvent::readObject(in);
|
||||||
|
}
|
||||||
|
|
||||||
|
void EntryEvent::writeObject (ObjectOutputStream& out) const
|
||||||
|
{
|
||||||
|
presents::dobj::NamedEvent::writeObject(out);
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "presents/Streamable.h"
|
||||||
|
#include "presents/ObjectInputStream.h"
|
||||||
|
#include "presents/ObjectOutputStream.h"
|
||||||
|
#include "presents/streamers/StreamableStreamer.h"
|
||||||
|
|
||||||
|
#include "presents/dobj/NamedEvent.h"
|
||||||
|
|
||||||
|
namespace presents { namespace dobj {
|
||||||
|
|
||||||
|
class EntryEvent : public presents::dobj::NamedEvent {
|
||||||
|
public:
|
||||||
|
DECLARE_STREAMABLE();
|
||||||
|
|
||||||
|
|
||||||
|
virtual void readObject(ObjectInputStream& in);
|
||||||
|
virtual void writeObject(ObjectOutputStream& out) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
}}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#include "presents/stable.h"
|
||||||
|
#include "EntryUpdatedEvent.h"
|
||||||
|
|
||||||
|
using namespace presents::dobj;
|
||||||
|
|
||||||
|
DEFINE_STREAMABLE("com.threerings.presents.dobj.EntryUpdatedEvent", EntryUpdatedEvent);
|
||||||
|
|
||||||
|
void EntryUpdatedEvent::readObject (ObjectInputStream& in)
|
||||||
|
{
|
||||||
|
presents::dobj::EntryEvent::readObject(in);
|
||||||
|
entry = boost::static_pointer_cast<Streamable>(in.readObject());
|
||||||
|
}
|
||||||
|
|
||||||
|
void EntryUpdatedEvent::writeObject (ObjectOutputStream& out) const
|
||||||
|
{
|
||||||
|
presents::dobj::EntryEvent::writeObject(out);
|
||||||
|
out.writeObject(entry);
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "presents/Streamable.h"
|
||||||
|
#include "presents/ObjectInputStream.h"
|
||||||
|
#include "presents/ObjectOutputStream.h"
|
||||||
|
#include "presents/streamers/StreamableStreamer.h"
|
||||||
|
|
||||||
|
#include "presents/Streamable.h"
|
||||||
|
#include "presents/dobj/EntryEvent.h"
|
||||||
|
|
||||||
|
namespace presents { namespace dobj {
|
||||||
|
|
||||||
|
class EntryUpdatedEvent : public presents::dobj::EntryEvent {
|
||||||
|
public:
|
||||||
|
DECLARE_STREAMABLE();
|
||||||
|
|
||||||
|
Shared<Streamable> entry;
|
||||||
|
|
||||||
|
virtual void readObject(ObjectInputStream& in);
|
||||||
|
virtual void writeObject(ObjectOutputStream& out) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
}}
|
||||||
Reference in New Issue
Block a user