|
#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
|