14cf7855a2
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6361 542714f4-19e9-0310-aa3c-eee0fc999fb1
23 lines
725 B
C++
23 lines
725 B
C++
#include "presents/stable.h"
|
|
#include "ClientObject.h"
|
|
|
|
using namespace presents::data;
|
|
|
|
DEFINE_STREAMABLE("com.threerings.presents.data.ClientObject", ClientObject);
|
|
|
|
void ClientObject::readObject (ObjectInputStream& in)
|
|
{
|
|
presents::dobj::DObject::readObject(in);
|
|
username = boost::static_pointer_cast<util::Name>(in.readObject());
|
|
receivers = boost::static_pointer_cast<presents::dobj::DSet>(in.readObject());
|
|
ignore = boost::static_pointer_cast<presents::data::PermissionPolicy>(in.readObject());
|
|
}
|
|
|
|
void ClientObject::writeObject (ObjectOutputStream& out) const
|
|
{
|
|
presents::dobj::DObject::writeObject(out);
|
|
out.writeObject(username);
|
|
out.writeObject(receivers);
|
|
out.writeObject(ignore);
|
|
}
|