Compiles
[iotcloud.git] / version2 / src / C / Entry.h
index 363b771d9e25dfb25b7b9990f238846879107e85..acdd04a8a0174d431516ac13866a4ee45ab0e054 100644 (file)
 #define TypeLastMessage 5
 #define TypeRejectedMessage 6
 #define TypeTableStatus 7
+#define TypeSlot 8
 
 class Entry : public Liveness {
        /* Records whether the information is still live or has been
           superceded by a newer update.  */
 private:
        bool islive;
-
 protected:
        Slot *parentslot;
 
@@ -46,7 +46,6 @@ public:
         */
        virtual void encode(ByteBuffer *bb) = 0;
 
-
        /**
         * Returns the size in chars the entry object will take in the char
         * array.
@@ -54,16 +53,11 @@ public:
        virtual int getSize() = 0;
 
 
-       /**
-        * Returns a char encoding the type of the entry object.
-        */
-       virtual char getType() = 0;
-
-
        /**
         * Returns a copy of the Entry that can be added to a different slot.
         */
        virtual Entry *getCopy(Slot *s) = 0;
+       friend Entry *Entry_decode(Slot *slot, ByteBuffer *bb);
 };
 
 /**