Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

coherence/io/pof/SubjectPofSerializer.hpp

00001 /*
00002 * SubjectPofSerializer.hpp
00003 *
00004 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_SUBJECT_POF_SERIALIZER_HPP
00017 #define COH_SUBJECT_POF_SERIALIZER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/io/pof/PofReader.hpp"
00022 #include "coherence/io/pof/PofWriter.hpp"
00023 
00024 COH_OPEN_NAMESPACE3(coherence,io,pof)
00025 
00026 
00027 /**
00028 * PofSerializer implementation that can serialize and deserialize a
00029 * Subject to/from a POF stream.
00030 *
00031 * Only the Principals associated with the Subject are serialized.
00032 *
00033 * @author mf  2008.08.25
00034 *
00035 * @see PrincipalPofSerializer
00036 */
00037 class COH_EXPORT SubjectPofSerializer
00038     : public class_spec<SubjectPofSerializer,
00039         extends<Object>,
00040         implements<PofSerializer> >
00041     {
00042     friend class factory<SubjectPofSerializer>;
00043 
00044     // ----- constructors ---------------------------------------------------
00045 
00046     protected:
00047         /**
00048         * Default constructor.
00049         */
00050         SubjectPofSerializer();
00051 
00052 
00053     // ----- PofSerializer interface ----------------------------------------
00054 
00055     public:
00056         /**
00057         * {@inheritDoc}
00058         */
00059         virtual void serialize(PofWriter::Handle hOut, Object::View v) const;
00060 
00061         /**
00062         * {@inheritDoc}
00063         */
00064         virtual Object::Holder deserialize(PofReader::Handle hIn) const;
00065     };
00066 
00067 COH_CLOSE_NAMESPACE3
00068 
00069 #endif // COH_SUBJECT_POF_SERIALIZER_HPP
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.