/* * Copyright (c) 2010 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include namespace Swift { class SubjectSerializer : public GenericPayloadSerializer { public: SubjectSerializer() : GenericPayloadSerializer() {} virtual std::string serializePayload(boost::shared_ptr subject) const { XMLTextNode textNode(subject->getText()); return "" + textNode.serialize() + ""; } }; }