12 #ifndef _CVT_DEVICESPEC_ 13 #define _CVT_DEVICESPEC_ 18 #include <glog/logging.h> 48 class CvtDeviceSection {
53 CvtDeviceSection(
long section) {
55 for (
int i = 0; i < _DS_MAX; i++) {
61 int getvalue(_dsiv_t index) {
133 _manufacturer = manufacturer;
134 return _manufacturer;
142 return _manufacturer;
168 _type = pdevspec->_type;
169 _section = pdevspec->_section;
170 _target = pdevspec->_target;
171 _manufacturer = pdevspec->_manufacturer;
172 _model = pdevspec->_model;
180 return "CvtDeviceSpec type : " + to_string(_type)
181 +
", target : " + to_string(_target) +
", section : " + to_string(_section)
182 +
", manufacturer : " + _manufacturer +
", model : " + _model;
194 if (_target == pdevspec->_target)
214 if (_type == pdevspec->_type)
231 if (_section == pdevspec->_section) {
235 CvtDeviceSection in(_section);
236 CvtDeviceSection ex(pdevspec->_section);
238 if (in.getvalue (_DS_TX) == ex.getvalue (_DS_TX)) {
239 if (in.getvalue (_DS_PX) != ex.getvalue (_DS_PX)) {
248 if (in.getvalue (_DS_TY) == ex.getvalue (_DS_TY)) {
249 if (in.getvalue (_DS_PY) != ex.getvalue (_DS_PY)) {
258 if (in.getvalue (_DS_TZ) == ex.getvalue (_DS_TZ)) {
259 if (in.getvalue (_DS_PZ) != ex.getvalue (_DS_PZ)) {
276 if (!checksection (pdevspec))
279 if (!checktarget (pdevspec))
282 if (!checktype (pdevspec))
string getmanufacturer()
Definition: cvtdevicespec.h:141
devtype_t
Definition: cvtcode.h:63
devtype_t gettype()
Definition: cvtdevicespec.h:107
string getmodel()
Definition: cvtdevicespec.h:159
bool checktarget(CvtDeviceSpec *pdevspec)
Definition: cvtdevicespec.h:189
string setmodel(string model)
Definition: cvtdevicespec.h:150
bool checksection(CvtDeviceSpec *pdevspec)
Definition: cvtdevicespec.h:226
devgroup_t getgrouptype()
Definition: cvtdevicespec.h:99
알수없는 센서
Definition: cvtcode.h:79
devtarget_t gettarget()
Definition: cvtdevicespec.h:123
CvtDeviceSpec()
Definition: cvtdevicespec.h:70
devgroup_t
Definition: cvtcode.h:55
devsec_t getsection()
Definition: cvtdevicespec.h:115
알수없는 장비
Definition: cvtcode.h:64
string tostring()
Definition: cvtdevicespec.h:179
#define DL_UNKNOWN
설치구역 알수 없음
Definition: cvtcode.h:21
bool copy(CvtDeviceSpec *pdevspec)
Definition: cvtdevicespec.h:167
long devsec_t
Definition: cvtcode.h:19
대상을 알지 못함
Definition: cvtcode.h:41
devtarget_t
Definition: cvtcode.h:40
알수없는 스위치형 구동기
Definition: cvtcode.h:99
bool checktype(CvtDeviceSpec *pdevspec)
Definition: cvtdevicespec.h:205
string setmanufacturer(string manufacturer)
Definition: cvtdevicespec.h:132
알수없는 모터형 구동기
Definition: cvtcode.h:95
bool ismatched(CvtDeviceSpec *pdevspec)
Definition: cvtdevicespec.h:275
Definition: cvtdevicespec.h:40
CvtDeviceSpec(devtype_t devtype, devsec_t section, devtarget_t target)
Definition: cvtdevicespec.h:84