This changes things to match Ray's Java event hierarchy change. I don't know

whether it's desirable, or breaks things, or what.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6281 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2010-11-17 01:09:21 +00:00
parent 3ef676f02f
commit e7ffb611cb
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -7,12 +7,12 @@ DEFINE_STREAMABLE("com.threerings.presents.dobj.EntryAddedEvent", EntryAddedEven
void EntryAddedEvent::readObject (ObjectInputStream& in)
{
presents::dobj::NamedEvent::readObject(in);
presents::dobj::EntryEvent::readObject(in);
entry = boost::static_pointer_cast<Streamable>(in.readObject());
}
void EntryAddedEvent::writeObject (ObjectOutputStream& out) const
{
presents::dobj::NamedEvent::writeObject(out);
presents::dobj::EntryEvent::writeObject(out);
out.writeObject(entry);
}
+2 -2
View File
@@ -6,11 +6,11 @@
#include "presents/streamers/StreamableStreamer.h"
#include "presents/Streamable.h"
#include "presents/dobj/NamedEvent.h"
#include "presents/dobj/EntryEvent.h"
namespace presents { namespace dobj {
class EntryAddedEvent : public presents::dobj::NamedEvent {
class EntryAddedEvent : public presents::dobj::EntryEvent {
public:
DECLARE_STREAMABLE();
+2 -2
View File
@@ -7,12 +7,12 @@ DEFINE_STREAMABLE("com.threerings.presents.dobj.EntryRemovedEvent", EntryRemoved
void EntryRemovedEvent::readObject (ObjectInputStream& in)
{
presents::dobj::NamedEvent::readObject(in);
presents::dobj::EntryEvent::readObject(in);
key = boost::static_pointer_cast<Streamable>(in.readObject());
}
void EntryRemovedEvent::writeObject (ObjectOutputStream& out) const
{
presents::dobj::NamedEvent::writeObject(out);
presents::dobj::EntryEvent::writeObject(out);
out.writeObject(key);
}
+2 -2
View File
@@ -6,11 +6,11 @@
#include "presents/streamers/StreamableStreamer.h"
#include "presents/Streamable.h"
#include "presents/dobj/NamedEvent.h"
#include "presents/dobj/EntryEvent.h"
namespace presents { namespace dobj {
class EntryRemovedEvent : public presents::dobj::NamedEvent {
class EntryRemovedEvent : public presents::dobj::EntryEvent {
public:
DECLARE_STREAMABLE();