cvtdriver
Driver for SmartFarm Device Converter
Public 멤버 함수
stdcvt::CvtDeviceFactory 클래스 참조

Public 멤버 함수

 CvtDeviceFactory ()
 
void setsensors (json sensors)
 
void setmotors (json motors)
 
void setswitches (json switches)
 
CvtSensornewsensor (int index)
 
CvtActuatornewswitch (int index)
 
CvtMotornewmotor (int index)
 

생성자 & 소멸자 문서화

stdcvt::CvtDeviceFactory::CvtDeviceFactory ( )
inline

새로운 장비팩토리를 생성한다.

멤버 함수 문서화

CvtMotor* stdcvt::CvtDeviceFactory::newmotor ( int  index)
inline

모터를 생성한다. 생성된 인스턴스에 대한 해제책임은 사용자에게 있다.

매개변수
index0에서 시작하는 인덱스값.
반환값
CvtMotor의 포인터. nullptr 이면 설정없음.
CvtSensor* stdcvt::CvtDeviceFactory::newsensor ( int  index)
inline

센서를 생성한다. 생성된 인스턴스에 대한 해제책임은 사용자에게 있다.

매개변수
index0에서 시작하는 인덱스값.
반환값
CvtSensor 의 포인터. nullptr 이면 설정없음.
CvtActuator* stdcvt::CvtDeviceFactory::newswitch ( int  index)
inline

스위치를 생성한다. 생성된 인스턴스에 대한 해제책임은 사용자에게 있다.

매개변수
index0에서 시작하는 인덱스값.
반환값
CvtActuator의 포인터. nullptr 이면 설정없음.
void stdcvt::CvtDeviceFactory::setmotors ( json  motors)
inline

센서 생성을 위한 옵션을 추가한다.

매개변수
motors모터를 위한 옵션. json 타입의 포인터.
void stdcvt::CvtDeviceFactory::setsensors ( json  sensors)
inline

센서 생성을 위한 옵션을 추가한다.

매개변수
sensors센서를 위한 옵션. json 타입의 포인터.
void stdcvt::CvtDeviceFactory::setswitches ( json  switches)
inline

센서 생성을 위한 옵션을 추가한다.

매개변수
switches스위치를 위한 옵션. json 타입의 포인터.

이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: