X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FNewKey.h;h=2abb1be0707bc8e70418c686af80da2ba7eaf004;hp=ffb577ac9401c6a16dc55b6036c9f36c1eef6d12;hb=6235838a7002217d5b236c753b3a109aa0daa92b;hpb=7262ffd03fa5a5f9e92977e7e3cc04dd2c2ff6e0 diff --git a/version2/src/C/NewKey.h b/version2/src/C/NewKey.h index ffb577a..2abb1be 100644 --- a/version2/src/C/NewKey.h +++ b/version2/src/C/NewKey.h @@ -9,32 +9,22 @@ * @version 1.0 */ - class NewKey : public Entry { private: IoTString *key; int64_t machineid; - public: - NewKey(Slot *slot, IoTString *_key, int64_t _machineid) : - Entry(slot), - key(_key), - machineid(_machineid) { - } - + NewKey(Slot *slot, IoTString *_key, int64_t _machineid); + ~NewKey(); int64_t getMachineID() { return machineid; } IoTString *getKey() { return key; } void setSlot(Slot *s) { parentslot = s; } - - void encode(ByteBuffer *bb); int getSize(); char getType() { return TypeNewKey; } - - Entry *getCopy(Slot *s) { return new NewKey(s, key, machineid); } + Entry *getCopy(Slot *s); }; Entry *NewKey_decode(Slot *slot, ByteBuffer *bb); - #endif