00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 #ifndef COH_ABSTRACT_EVOLVABLE_HPP
00017 #define COH_ABSTRACT_EVOLVABLE_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/io/Evolvable.hpp"
00022 #include "coherence/util/Binary.hpp"
00023 
00024 COH_OPEN_NAMESPACE2(coherence,io)
00025 
00026 
00027 using coherence::util::Binary;
00028 
00029 
00030 
00031 
00032 
00033 
00034 class COH_EXPORT AbstractEvolvable
00035     : public abstract_spec<AbstractEvolvable,
00036         extends <Object>,
00037         implements<Evolvable> >
00038     {
00039     
00040 
00041     protected:
00042 
00043 
00044 
00045         AbstractEvolvable();
00046 
00047 
00048 
00049 
00050         AbstractEvolvable(const AbstractEvolvable& that);
00051 
00052 
00053     
00054 
00055     public:
00056 
00057 
00058 
00059         virtual int32_t getImplVersion() const = 0;
00060 
00061 
00062 
00063 
00064         virtual int32_t getDataVersion() const;
00065 
00066 
00067 
00068 
00069         virtual void setDataVersion(int32_t nVersion);
00070 
00071 
00072 
00073 
00074         virtual Binary::View getFutureData() const;
00075 
00076 
00077 
00078 
00079         virtual void setFutureData(Binary::View vBinFuture);
00080 
00081 
00082       
00083 
00084       private:
00085 
00086 
00087 
00088         int32_t m_nDataVersion;
00089 
00090 
00091 
00092 
00093 
00094         MemberView<Binary> m_vBinFuture;
00095       
00096     };
00097 
00098 COH_CLOSE_NAMESPACE2
00099 
00100 #endif // COH_ABSTRACT_EVOLVABLE_HPP
00101