Adding setup picture that matches the program code in terms of pins and sensor setup.
[iotcloud.git] / version2 / src / C / Commit.h
old mode 100644 (file)
new mode 100755 (executable)
index df263ae..1a8e508
@@ -5,9 +5,8 @@
 
 class Commit {
 private:
-       Vector<CommitPart *> *parts;
+       MyVector<CommitPart *> *parts;
        uint32_t partCount;
-       Hashset<int32_t> *missingParts;
        bool fldisComplete;
        bool hasLastPart;
        Hashset<KeyValue *, uintptr_t, 0> *keyValueUpdateSet;
@@ -16,8 +15,9 @@ private:
        int64_t machineId;
        int64_t transactionSequenceNumber;
        Hashset<IoTString *> *liveKeys;
+       Array<char> *dataBytes;
        Array<char> *convertDataToBytes();
-       void setKVsMap(Hashset<KeyValue *, uintptr_t, 0> *newKVs);
+       void setKVsMap(Hashset<KeyValue *, uintptr_t, 0, hashKeyValue, KeyValueEquals> *newKVs);
 
 public:
        Commit();
@@ -26,7 +26,7 @@ public:
        void addPartDecode(CommitPart *newPart);
        int64_t getSequenceNumber();
        int64_t getTransactionSequenceNumber();
-       Vector<CommitPart *> *getParts();
+       MyVector<CommitPart *> *getParts();
        void addKV(KeyValue *kv);
        void invalidateKey(IoTString *key);
        Hashset<KeyValue *, uintptr_t, 0> *getKeyValueUpdateSet();
@@ -35,7 +35,6 @@ public:
        bool isComplete() { return fldisComplete; }
        bool isLive() { return !isDead; }
        void setDead();
-       CommitPart *getPart(int32_t index);
        void createCommitParts();
        void decodeCommitData();
        friend Commit *Commit_merge(Commit *newer, Commit *older, int64_t newSequenceNumber);