tabbing
[iotcloud.git] / version2 / src / C / LastMessage.h
index d4cddd07d63acb4a2739f069c09d5c19a05a8126..22d7d99dc6980f27135f42fe54e7becaf89dc650 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef LASTMESSAGE_H
 #define LASTMESSAGE_H
 
-#include"common.h"
-#include"Entry.h"
+#include "common.h"
+#include "Entry.h"
 
 /**
  * This Entry records the last message sent by a given machine.
 
 
 class LastMessage : public Entry {
- private:
+private:
        int64_t machineid;
        int64_t seqnum;
 
- public:
LastMessage(Slot * slot, int64_t _machineid, int64_t _seqnum) :
-       Entry(slot),
+public:
      LastMessage(Slot *slot, int64_t _machineid, int64_t _seqnum) :
+               Entry(slot),
                machineid(_machineid),
                seqnum(_seqnum) {
-               }
+       }
 
        int64_t getMachineID() { return machineid; }
        int64_t getSequenceNumber() { return seqnum; }
-       void encode(ByteBuffer * bb);
-       int getSize() { return 2*sizeof(int64_t)+sizeof(char); }
+       void encode(ByteBuffer *bb);
+       int getSize() { return 2 * sizeof(int64_t) + sizeof(char); }
        char getType() { return TypeLastMessage; }
-       Entry * getCopy(Slot * s) { return new LastMessage(s, machineid, seqnum); }
+       Entry *getCopy(Slot *s) { return new LastMessage(s, machineid, seqnum); }
 };
 
-Entry * LastMessage_decode(Slot * slot, ByteBuffer * bb);
+Entry *LastMessage_decode(Slot *slot, ByteBuffer *bb);
 #endif