派生自 development/c++

pansen
2019-02-28 b6c9f1297932297dc37b957355faa21dba44e81d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
//
// Created by ps on 8/9/18.
//
 
#ifndef UNTITLED_SYNCDB_HPP
#define UNTITLED_SYNCDB_HPP
 
#include <iostream>
#include <map>
#include <basic/debug/Debug.h>
 
namespace SyncDB {
 
    // Value-Defintions of the different String values
    enum Feature_InfoStringValue {
        evNotDefined,
        id,
        feature,
        create_by,
        create_time,
        update_time,
        img,
        idcard,
        enable,
        monLevel,
        evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, Feature_InfoStringValue> Map_Fea_InfoString2Values;
    static Map_Fea_InfoString2Values map_Fea_InfoString2Values;
 
    static void Initialize() {
        map_Fea_InfoString2Values["id"] = Feature_InfoStringValue::id;
        map_Fea_InfoString2Values["feature"] = Feature_InfoStringValue::feature;
        map_Fea_InfoString2Values["create_by"] = Feature_InfoStringValue::create_by;
        map_Fea_InfoString2Values["create_time"] = Feature_InfoStringValue::create_time;
        map_Fea_InfoString2Values["update_time"] = Feature_InfoStringValue::update_time;
        map_Fea_InfoString2Values["img"] = Feature_InfoStringValue::img;
        map_Fea_InfoString2Values["idcard"] = Feature_InfoStringValue::idcard;
        map_Fea_InfoString2Values["enable"] = Feature_InfoStringValue::enable;
        map_Fea_InfoString2Values["monitorLevel"] = Feature_InfoStringValue::monLevel;
        map_Fea_InfoString2Values["end"] = evEnd;
    }
 
    // Intialization
    static bool ret = (Initialize(), true);
 
    struct Feature_Info {
    public:
        Feature_Info() {
//            Initialize();
        }
 
//        ~Feature_Info() {
//            for (auto &item:map_Fea_InfoString2Values) {
//                map_Fea_InfoString2Values.erase(item.first);
//            }
//        }
 
        bool setValue(std::string key, std::string value) {
            try {
                switch (map_Fea_InfoString2Values[key]) {
                    case Feature_InfoStringValue::evNotDefined:
                        //#todo error info
                        return false;
                    case Feature_InfoStringValue::id:
                        id = value;
                        break;
                    case Feature_InfoStringValue::feature:
                        feature = value;
                        break;
                    case Feature_InfoStringValue::create_by:
                        create_by = value;
                        break;
                    case Feature_InfoStringValue::create_time:
                        create_time = value;
                        break;
                    case Feature_InfoStringValue::update_time:
                        update_time = value;
                        break;
                    case Feature_InfoStringValue::img:
                        img = value;
                        break;
                    case Feature_InfoStringValue::idcard:
                        idcard = value;
                        break;
                    case Feature_InfoStringValue::enable:
                        enable = value;
                        break;
                    case Feature_InfoStringValue::monLevel:
                        monLevel = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_Fea_InfoString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string id;
        std::string feature;
        std::string create_by;
        std::string create_time;
        std::string update_time;
        std::string img;
        std::string idcard;
        std::string enable;
        std::string monLevel;
 
 
//        value is a atom: atomSize:19, atomValue:test@192.168.50.216
//        value is a list:2018-08-08 20:17:11
//        value is a atom: atomSize:36, atomValue:ce386825-76f4-42bc-a0e1-cd9484cb7a8c
//        value is a list:6eda59e2-d884-5ffb-89d9-84dcffda2ad6
//        value is a list:2018-08-08 20:17:11
 
    private:
    };
 
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//---------------------------DEVICE_INFO--------------------------------------
//----------------------------------------------------------------------------
 
//    key:create_by  string :za@192.168.50.216
//    key:create_time  string :2018-08-12 16:56:08
//    key:del_flag   bool :0
//    key:dev_address  string :DevAddress
//    key:device_name  string :
//    key:father_node  string :
//    key:node_id      string :za@192.168.50.216
//    key:node_online  bool: 1
//    key:update_time  string :2018-08-12 16:56:08
//    key:uuid         string :19633f6f-acd9-5482-a0c8-74a44a576edf
// Value-Defintions of the different String values
    enum Device_InfoStringValue {
        dev_evNotDefined,
        dev_create_by,
        dev_create_time,
        dev_del_flag,
        dev_cluster_id,
        dev_cluster_name,
        dev_device_id,
        dev_node_id,
        dev_node_online,
        dev_update_time,
        dev_uuid,
        dev_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, Device_InfoStringValue> Map_Dev_InfoString2Values;
 
    static Map_Dev_InfoString2Values map_Dev_InfoString2Values;
 
    static void DevInitialize() {
        //#todo
        map_Dev_InfoString2Values["create_by"] = Device_InfoStringValue::dev_create_by;
        map_Dev_InfoString2Values["create_time"] = Device_InfoStringValue::dev_create_time;
        map_Dev_InfoString2Values["del_flag"] = Device_InfoStringValue::dev_del_flag;
        map_Dev_InfoString2Values["cluster_id"] = Device_InfoStringValue::dev_cluster_id;
        map_Dev_InfoString2Values["cluster_name"] = Device_InfoStringValue::dev_cluster_name;
        map_Dev_InfoString2Values["device_id"] = Device_InfoStringValue::dev_device_id;
        map_Dev_InfoString2Values["node_id"] = Device_InfoStringValue::dev_node_id;
        map_Dev_InfoString2Values["update_time"] = Device_InfoStringValue::dev_update_time;
        map_Dev_InfoString2Values["uuid"] = Device_InfoStringValue::dev_uuid;
        map_Dev_InfoString2Values["end"] = Device_InfoStringValue::dev_evEnd;
    }
 
    // Intialization
    static bool devRet = (DevInitialize(), true);
 
    struct Device_Info {
    public:
        Device_Info() :
            create_by(""), create_time(""), del_flag(""), device_id(""), cluster_id(""), cluster_name(""), node_id(""),
            update_time(""),
            uuid("") {
//            Initialize();
        }
 
        ~Device_Info() {
//            for (auto &item:map_Fea_InfoString2Values) {
//                map_Fea_InfoString2Values.erase(item.first);
//            }
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_Dev_InfoString2Values[key];
                switch (type) {
                    case Device_InfoStringValue::dev_evNotDefined:
                        //#todo error info
                        return false;
                    case Device_InfoStringValue::dev_create_by:
                        create_by = value;
                        break;
                    case Device_InfoStringValue::dev_create_time:
                        create_time = value;
                        break;
                    case Device_InfoStringValue::dev_del_flag:
                        del_flag = value;
                        break;
                    case Device_InfoStringValue::dev_cluster_id:
                        cluster_id = value;
                        break;
                    case Device_InfoStringValue::dev_cluster_name:
                        cluster_name = value;
                        break;
                    case Device_InfoStringValue::dev_device_id:
                        device_id = value;
                        break;
                    case Device_InfoStringValue::dev_node_id:
                        node_id = value;
                        break;
                    case Device_InfoStringValue::dev_update_time:
                        update_time = value;
                        break;
                    case Device_InfoStringValue::dev_uuid:
                        uuid = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_Fea_InfoString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string create_by;
        std::string create_time;
        std::string del_flag;
        std::string device_id;
        std::string cluster_id;
        std::string cluster_name;
        std::string node_id;
        std::string update_time;
        std::string uuid;
 
    private:
    };
 
 
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//---------------------------Table_INFO--------------------------------------
//----------------------------------------------------------------------------
 
 
//{"create_by",'za@192.168.50.216'},
//{"create_time","2018-08-13 10:14:39"},
//{"del_flag","0"},
//{"tableDesc",test},
//{"tableName",aaa1},
//{"tableType",person},
//{"update_time","2018-08-13 10:14:39"},
//{"uuid","b1c19f77-623b-5294-9b65-9a766af1f77d"}
// Value-Defintions of the different String values
    enum Table_InfoStringValue {
        tab_evNotDefined,
        tab_create_by,
        tab_create_time,
        tab_del_flag,
        tab_tableDesc,
        tab_tableName,
        tab_tableType,
        tab_bwType,
        tab_update_time,
        tab_uuid,
        tab_startTime,
        tab_endTime,
        tab_uploadFlag,
        tab_cmpThreshold,
        tab_enabled,
        tab_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, Table_InfoStringValue> Map_Tab_InfoString2Values;
    static Map_Tab_InfoString2Values map_Tab_InfoString2Values;
 
    static void TabInitialize() {
        map_Tab_InfoString2Values["create_by"] = Table_InfoStringValue::tab_create_by;
        map_Tab_InfoString2Values["create_time"] = Table_InfoStringValue::tab_create_time;
        map_Tab_InfoString2Values["del_flag"] = Table_InfoStringValue::tab_del_flag;
        map_Tab_InfoString2Values["tableDesc"] = Table_InfoStringValue::tab_tableDesc;
        map_Tab_InfoString2Values["tableName"] = Table_InfoStringValue::tab_tableName;
        map_Tab_InfoString2Values["tableType"] = Table_InfoStringValue::tab_tableType;
        map_Tab_InfoString2Values["bwType"] = Table_InfoStringValue::tab_bwType;
        map_Tab_InfoString2Values["update_time"] = Table_InfoStringValue::tab_update_time;
        map_Tab_InfoString2Values["uuid"] = Table_InfoStringValue::tab_uuid;
        map_Tab_InfoString2Values["startTime"] = Table_InfoStringValue::tab_startTime;
        map_Tab_InfoString2Values["endTime"] = Table_InfoStringValue::tab_endTime;
        map_Tab_InfoString2Values["uploadFlag"] = Table_InfoStringValue::tab_uploadFlag;
        map_Tab_InfoString2Values["cmpThreshold"] = Table_InfoStringValue::tab_cmpThreshold;
        map_Tab_InfoString2Values["enabled"] = Table_InfoStringValue::tab_enabled;
        map_Tab_InfoString2Values["end"] = Table_InfoStringValue::tab_evEnd;
    }
 
    // Intialization
    static bool tabRet = (TabInitialize(), true);
 
    struct Table_Info {
    public:
        Table_Info() :
            create_by(""), create_time(""), del_flag(""), tableDesc(""), tableName(""), tableType(""), update_time(""),
            uuid(""), bwType(""), startTime(""), endTime(""), uploadFlag(""), cmpThreshold(""), enabled("") {
//            Initialize();
        }
 
        ~Table_Info() {
//            for (auto &item:map_Fea_InfoString2Values) {
//                map_Fea_InfoString2Values.erase(item.first);
//            }
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_Tab_InfoString2Values[key];
                switch (type) {
                    case Table_InfoStringValue::tab_evNotDefined:
                        //#todo error info
                        return false;
                    case Table_InfoStringValue::tab_create_by:
                        create_by = value;
                        break;
                    case Table_InfoStringValue::tab_create_time:
                        create_time = value;
                        break;
                    case Table_InfoStringValue::tab_del_flag:
                        del_flag = value;
                        break;
                    case Table_InfoStringValue::tab_tableDesc:
                        tableDesc = value;
                        break;
                    case Table_InfoStringValue::tab_tableName:
                        tableName = value;
                        break;
                    case Table_InfoStringValue::tab_tableType:
                        tableType = value;
                        break;
                    case Table_InfoStringValue::tab_bwType:
                        bwType = value;
                        break;
                    case Table_InfoStringValue::tab_uuid:
                        uuid = value;
                        break;
                    case Table_InfoStringValue::tab_update_time:
                        update_time = value;
                        break;
                    case Table_InfoStringValue::tab_startTime:
                        startTime = value;
                        break;
                    case Table_InfoStringValue::tab_endTime:
                        endTime = value;
                        break;
                    case Table_InfoStringValue::tab_uploadFlag:
                        uploadFlag = value;
                        break;
                    case Table_InfoStringValue::tab_cmpThreshold:
                        cmpThreshold = value;
                        break;
                    case Table_InfoStringValue::tab_enabled:
                        enabled = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_Fea_InfoString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string create_by;
        std::string create_time;
        std::string del_flag;
        std::string tableDesc;
        std::string tableName;
        std::string tableType;
        std::string update_time;
        std::string uuid;
        std::string bwType;
        std::string startTime;
        std::string endTime;
        std::string uploadFlag;
        std::string cmpThreshold;
        std::string enabled;
 
    private:
    };
 
 
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//---------------------------Bw_INFO--------------------------------------
//----------------------------------------------------------------------------
 
 
//{"bwType",'0'},
//{"create_by",'za@192.168.50.216'},
//{"create_time","2018-08-13 10:14:39"},
//{"tableName",aaa1},
//{"update_time","2018-08-13 10:14:39"},
//{"uuid","e0eb30e9-f595-5651-8895-6f07f3851fcf"}
// Value-Defintions of the different String values
    enum Bw_InfoStringValue {
        bw_evNotDefined,
        bw_bwType,
        bw_create_by,
        bw_create_time,
        bw_tableName,
        bw_update_time,
        bw_uuid,
        bw_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, Bw_InfoStringValue> Map_Bw_InfoString2Values;
    static Map_Bw_InfoString2Values map_Bw_InfoString2Values;
 
    static void BwInitialize() {
        map_Bw_InfoString2Values["bwType"] = bw_bwType;
        map_Bw_InfoString2Values["create_by"] = bw_create_by;
        map_Bw_InfoString2Values["create_time"] = bw_create_time;
        map_Bw_InfoString2Values["tableName"] = bw_tableName;
        map_Bw_InfoString2Values["update_time"] = bw_update_time;
        map_Bw_InfoString2Values["uuid"] = bw_uuid;
        map_Bw_InfoString2Values["end"] = bw_evEnd;
    }
 
    // Intialization
    static bool bwRet = (BwInitialize(), true);
 
    struct Bw_Info {
    public:
        Bw_Info() :
            bwType(""), create_by(""), create_time(""), tableName(""), update_time(""),
            uuid("") {
//            Initialize();
        }
 
        ~Bw_Info() {
//            for (auto &item:map_Fea_InfoString2Values) {
//                map_Fea_InfoString2Values.erase(item.first);
//            }
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_Bw_InfoString2Values[key];
                switch (type) {
                    case bw_evNotDefined:
                        //#todo error info
                        return false;
                    case bw_bwType:
                        bwType = value;
                        break;
                    case bw_create_by:
                        create_by = value;
                        break;
                    case bw_create_time:
                        create_time = value;
                        break;
                    case bw_tableName:
                        tableName = value;
                        break;
                    case bw_uuid:
                        uuid = value;
                        break;
                    case bw_update_time:
                        update_time = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_Fea_InfoString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string create_by;
        std::string create_time;
        std::string bwType;
        std::string tableName;
        std::string update_time;
        std::string uuid;
 
    private:
    };
 
 
    struct AddPersonInfo {
        std::string personid;
        std::string idcard;
        std::string personPic;
        std::string feature;
    };
 
    enum AddPersRetStringValue {
        ap_evNotDefined,
        ap_PersonId,
        ap_Result,
        ap_msg,
        ap_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, AddPersRetStringValue> Map_AddPersRetString2Values;
    static Map_AddPersRetString2Values map_AddPersRetString2Values;
 
    static void AddRetInitialize() {
        map_AddPersRetString2Values["PersonId"] = ap_PersonId;
        map_AddPersRetString2Values["Result"] = ap_Result;
        map_AddPersRetString2Values["msg"] = ap_msg;
        map_AddPersRetString2Values["end"] = ap_evEnd;
    }
 
    // Intialization
    static bool addPerRet = (AddRetInitialize(), true);
 
    struct AddPersRet {
    public:
        AddPersRet() :
            PersonId(""), Result(""), msg("") {
//            Initialize();
        }
 
        ~AddPersRet() {
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_AddPersRetString2Values[key];
                switch (type) {
                    case ap_evNotDefined:
                        //#todo error info
                        return false;
                    case ap_PersonId:
                        PersonId = value;
                        break;
                    case ap_Result:
                        Result = value;
                        break;
                    case ap_msg:
                        msg = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_AddPersRetString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string PersonId;
        std::string Result;
        std::string msg;
 
    private:
    };
 
 
    enum PerExistRetStringValue {
        pe_evNotDefined,
        pe_tableName,
        pe_tableUuid,
        pe_uuid,
        pe_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, PerExistRetStringValue> Map_PerExistRetString2Values;
    static Map_PerExistRetString2Values map_PerExistRetString2Values;
 
    static void PerExistRetInitialize() {
        map_PerExistRetString2Values["tableName"] = pe_tableName;
        map_PerExistRetString2Values["tableUuid"] = pe_tableUuid;
        map_PerExistRetString2Values["uuid"] = pe_uuid;
        map_PerExistRetString2Values["end"] = pe_evEnd;
    }
 
    // Intialization
    static bool perExistsRet = (PerExistRetInitialize(), true);
 
    struct PerExistRet {
    public:
        PerExistRet() :
            tableName(""), uuid(""), tableUuid("") {
//            Initialize();
        }
 
        ~PerExistRet() {
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_PerExistRetString2Values[key];
                switch (type) {
                    case pe_evNotDefined:
                        //#todo error info
                        return false;
                    case pe_tableName:
                        tableName = value;
                        break;
                    case pe_tableUuid:
                        tableUuid = value;
                        break;
                    case pe_uuid:
                        uuid = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_PerExistRetString2Values.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string tableName;
        std::string tableUuid;
        std::string uuid;
 
    private:
    };
 
 
    enum UpdPersRetStringValue {
        up_evNotDefined,
        up_tableName,
        up_tableUuid,
        up_result,
        up_oldId,
        up_evEnd
    };
 
    // Map to associate the strings with the enum values
    typedef std::map<std::string, UpdPersRetStringValue> Map_UpdPersRetStringValue;
    static Map_UpdPersRetStringValue map_UpdPersRetStringValue;
 
    static void UpdPersRetInitialize() {
        map_UpdPersRetStringValue["tableName"] = up_tableName;
        map_UpdPersRetStringValue["tableUuid"] = up_tableUuid;
        map_UpdPersRetStringValue["result"] = up_result;
        map_UpdPersRetStringValue["oldId"] = up_oldId;
        map_UpdPersRetStringValue["end"] = up_evEnd;
    }
 
    // Intialization
    static bool updPerRet = (UpdPersRetInitialize(), true);
 
    struct UpdPersRet {
    public:
        UpdPersRet() :
            tableName(""), result(""), oldId(""), tableUuid("") {
//            Initialize();
        }
 
        ~UpdPersRet() {
        }
 
        bool setValue(std::string key, std::string value) {
            try {
                //#todo
                int type = map_UpdPersRetStringValue[key];
                switch (type) {
                    case up_evNotDefined:
                        //#todo error info
                        return false;
                    case up_tableName:
                        tableName = value;
                        break;
                    case up_tableUuid:
                        tableUuid = value;
                        break;
                    case up_result:
                        result = value;
                        break;
                    case up_oldId:
                        oldId = value;
                        break;
                    default:
                        ERR(key << " is an invalid string. s_mapStringValues now contains "
                                << map_UpdPersRetStringValue.size() << " entries.");
                        return false;
                }
                return true;
            } catch (std::exception ex) {
                return false;
            }
        }
 
    public:
 
    public:
        std::string tableName;
        std::string tableUuid;
        std::string result;
        std::string oldId;
 
    private:
    };
 
 
}
 
#endif //UNTITLED_SYNCDB_HPP