Oracle Coherence for C++ API
Release 3.6.1.0
E18813-01

- Main Page
- Namespaces
- Classes
- Files

# coherence/io/pof/PrincipalPofSerializer.hpp

    00001 /*
    00002 * PrincipalPofSerializer.hpp
    00003 *
    00004 * Copyright (c) 2000, 2010, 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_PRINCIPAL_POF_SERIALIZER_HPP
    00017 #define COH_PRINCIPAL_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 * Principal to/from a POF stream.
    00030 *
    00031 * The PrincipalPofSerializer can serialize any Principal implementation to a
    00032 * POF stream; however, the Principals returned during deserialization are
    00033 * always instances of the GenericPrincipal class.
    00034 *
    00035 * @author mf  2008.08.25
    00036 */
    00037 class COH_EXPORT PrincipalPofSerializer
    00038     : public class_spec<PrincipalPofSerializer,
    00039         extends<Object>,
    00040         implements<PofSerializer> >
    00041     {
    00042     friend class factory<PrincipalPofSerializer>;
    00043
    00044     // ----- constructors ---------------------------------------------------
    00045
    00046     protected:
    00047         /**
    00048         * Default constructor.
    00049         */
    00050         PrincipalPofSerializer();
    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_PRINCIPAL_POF_SERIALIZER_HPP

Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.