00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef COH_PORTABLE_OBJECT_SERIALIZER_HPP
00017 #define COH_PORTABLE_OBJECT_SERIALIZER_HPP
00018
00019 #include "coherence/lang.ns"
00020
00021 #include "coherence/io/pof/PofReader.hpp"
00022 #include "coherence/io/pof/PofSerializer.hpp"
00023 #include "coherence/io/pof/PofWriter.hpp"
00024
00025 COH_OPEN_NAMESPACE3(coherence,io,pof)
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class COH_EXPORT PortableObjectSerializer
00036 : public class_spec<PortableObjectSerializer,
00037 extends<Object>,
00038 implements<PofSerializer> >
00039 {
00040 friend class factory<PortableObjectSerializer>;
00041
00042
00043
00044 protected:
00045
00046
00047
00048
00049
00050
00051
00052 PortableObjectSerializer(int32_t nTypeId);
00053
00054
00055
00056
00057 public:
00058
00059
00060
00061 virtual void serialize(PofWriter::Handle hOut, Object::View v) const;
00062
00063
00064
00065
00066 virtual Object::Holder deserialize(PofReader::Handle hIn) const;
00067
00068
00069
00070
00071 protected:
00072
00073
00074
00075 int32_t m_nTypeId;
00076 };
00077
00078 COH_CLOSE_NAMESPACE3
00079
00080 #endif // COH_PORTABLE_OBJECT_SERIALIZER_HPP
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.