tabbing
[iotcloud.git] / version2 / src / C / Entry.cc
index 2bde6eb65a31ec8a0103713c48fc32f3a78c4666..7d0a039b17efa6e65769cbad9b440c34fc340b8e 100644 (file)
@@ -7,45 +7,45 @@
  * @version 1.0
  */
 
-Entry * Entry_decode(Slot * slot, ByteBuffer * bb) {
-  char type = bb->get();
-  switch (type) {
-    
-  case TypeCommitPart:
-    return CommitPart_decode(slot, bb);
-    
-  case TypeAbort:
-    return Abort_decode(slot, bb);
-    
-  case TypeTransactionPart:
-    return TransactionPart_decode(slot, bb);
-    
-  case TypeNewKey:
-    return NewKey_decode(slot, bb);
-    
-  case TypeLastMessage:
-    return LastMessage_decode(slot, bb);
-    
-  case TypeRejectedMessage:
-    return RejectedMessage_decode(slot, bb);
-    
-  case TypeTableStatus:
-    return TableStatus_decode(slot, bb);
-    
-  default:
-    ASSERT(0);
-  }
+Entry *Entry_decode(Slot *slot, ByteBuffer *bb) {
+       char type = bb->get();
+       switch (type) {
+
+       case TypeCommitPart:
+               return CommitPart_decode(slot, bb);
+
+       case TypeAbort:
+               return Abort_decode(slot, bb);
+
+       case TypeTransactionPart:
+               return TransactionPart_decode(slot, bb);
+
+       case TypeNewKey:
+               return NewKey_decode(slot, bb);
+
+       case TypeLastMessage:
+               return LastMessage_decode(slot, bb);
+
+       case TypeRejectedMessage:
+               return RejectedMessage_decode(slot, bb);
+
+       case TypeTableStatus:
+               return TableStatus_decode(slot, bb);
+
+       default:
+               ASSERT(0);
+       }
 }
 
 void Entry::setDead() {
 
-  if (!islive ) {
-    return; // already dead
-  }
-  
-  islive = false;
-  
-  if (parentslot != NULL) {
-    parentslot->decrementLiveCount();
-  }
+       if (!islive ) {
+               return; // already dead
+       }
+
+       islive = false;
+
+       if (parentslot != NULL) {
+               parentslot->decrementLiveCount();
+       }
 }