派生自 development/c++

xuxiuxi
2019-03-08 5bf0020b189b2bc8c64737c2af4ea77c3e8f5612
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
 
#ifndef CAMDEV_H
#define CAMDEV_H
#include <mysql++.h>
#include <string>
using std::string;
 
#define CamDev_id "id"
#define CamDev_cam_dev_id "cam_dev_id"
#define CamDev_name "name"
#define CamDev_addr "addr"
#define CamDev_longitude "longitude"
#define CamDev_latitude "latitude"
#define CamDev_ip "ip"
#define CamDev_port "port"
#define CamDev_username "username"
#define CamDev_password "password"
#define CamDev_brand "brand"
#define CamDev_reserved "reserved"
#define CamDev_type "type"
 
/**
 * 摄像头设备
 */
class CamDev {
public:
    int id                   ; 
    std::string cam_dev_id   ; 
    std::string name         ; 
    std::string addr         ; 
    std::string longitude    ; 
    std::string latitude     ; 
    std::string ip           ; 
    int port                 ; 
    std::string username     ; 
    std::string password     ; 
    std::string brand        ; 
    std::string reserved     ; 
    std::string type         ; 
public:
    /** 摄像头设备 构造函数*/
    CamDev() {
        id = 0                   ;
        cam_dev_id = ""          ;
        name = ""                ;
        addr = ""                ;
        longitude = ""           ;
        latitude = ""            ;
        ip = ""                  ;
        port = 0                 ;
        username = ""            ;
        password = ""            ;
        brand = ""               ;
        reserved = ""            ;
        type = ""                ;
    }
};
 
 
#endif //CAMDEV_H