X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FTableStatus.h;h=e7978c08bc477f143460a59791381b94e9fe9dde;hp=ce2576e97702b42ba9a09c5237fe34b1b3706154;hb=0b9aca2b62c74f68652b170a92271a98d5b96666;hpb=5d76024703d601d6f7205c2cb0300ac4cbeffd1c diff --git a/version2/src/C/TableStatus.h b/version2/src/C/TableStatus.h index ce2576e..e7978c0 100644 --- a/version2/src/C/TableStatus.h +++ b/version2/src/C/TableStatus.h @@ -11,21 +11,21 @@ */ class TableStatus : public Entry { - private: +private: int maxslots; - public: - TableStatus(Slot * slot, int _maxslots) : Entry(slot), +public: + TableStatus(Slot *slot, int _maxslots) : Entry(slot), maxslots(_maxslots) { - } + } int getMaxSlots() { return maxslots; } void encode(ByteBuffer *bb); - int getSize() { return sizeof(int32_t)+sizeof(char); } - + int getSize() { return sizeof(int32_t) + sizeof(char); } + char getType() { return TypeTableStatus; } - - Entry * getCopy(Slot * s) { return new TableStatus(s, maxslots); } + + Entry *getCopy(Slot *s) { return new TableStatus(s, maxslots); } }; -Entry * TableStatus_decode(Slot * slot, ByteBuffer * bb); +Entry *TableStatus_decode(Slot *slot, ByteBuffer *bb); #endif