本文整理汇总了C++中ISInit函数的典型用法代码示例。如果您正苦于以下问题:C++ ISInit函数的具体用法?C++ ISInit怎么用?C++ ISInit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ISInit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ISNewSwitch
void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num)
{
ISInit();
for (int i = 0; i < cameraCount; i++)
{
FishCampCCD *camera = cameras[i];
if (dev == nullptr || !strcmp(dev, camera->name))
{
camera->ISNewSwitch(dev, name, states, names, num);
if (dev != nullptr)
break;
}
}
//This turns the LibFishcamp fcusb logging on and off along with the INDI Fishcamp file logging.
if (!strcmp(name, "LOG_OUTPUT"))
{
if(INDI::Logger::ConfigurationS[1].s == ISS_ON)
{
fcUsb_setLogging(true);
IDLog("Setting Starfish Driver File Log On\n");
}
else
{
fcUsb_setLogging(false);
IDLog("Setting Starfish Driver File Log Off\n");
}
}
}
示例2: ISGetProperties
void ISGetProperties(const char *dev)
{
ISInit();
if (dev == nullptr || !strcmp(dev, receiver->getDeviceName()))
{
receiver->ISGetProperties(dev);
}
}
示例3: ISNewSwitch
void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num)
{
ISInit();
if (dev == nullptr || !strcmp(dev, receiver->getDeviceName()))
{
receiver->ISNewSwitch(dev, name, states, names, num);
}
}
示例4: ISNewText
void ISNewText(const char *dev, const char *name, char *texts[], char *names[], int num)
{
ISInit();
if (dev == nullptr || !strcmp(dev, receiver->getDeviceName()))
{
receiver->ISNewText(dev, name, texts, names, num);
}
}
示例5: ISNewNumber
void ISNewNumber(const char *dev, const char *name, double values[], char *names[], int num)
{
ISInit();
if (dev == nullptr || !strcmp(dev, receiver->getDeviceName()))
{
receiver->ISNewNumber(dev, name, values, names, num);
}
}
示例6: ISSnoopDevice
void ISSnoopDevice(XMLEle *root)
{
ISInit();
for (int i = 0; i < cameraCount; i++)
{
MICCD *camera = cameras[i];
camera->ISSnoopDevice(root);
}
}
示例7: ISSnoopDevice
void ISSnoopDevice(XMLEle *root)
{
ISInit();
for (int i = 0; i < iNumofConnectCameras; i++)
{
ASICCD *camera = cameras[i];
camera->ISSnoopDevice(root);
}
}
示例8: ISNewText
void ISNewText(const char *dev, const char *name, char *texts[], char *names[], int num) {
ISInit();
for (int i = 0; i < cameraCount; i++) {
GPhotoCCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name)) {
camera->ISNewText(dev, name, texts, names, num);
if (dev != NULL)
break;
}
}
}
示例9: ISGetProperties
void ISGetProperties(const char *dev) {
ISInit();
for (int i = 0; i < cameraCount; i++) {
GPhotoCCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name)) {
camera->ISGetProperties(dev);
if (dev != NULL)
break;
}
}
}
示例10: ISNewSwitch
void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num) {
ISInit();
for (int i = 0; i < cameraCount; i++) {
GPhotoCCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name)) {
camera->ISNewSwitch(dev, name, states, names, num);
if (dev != NULL)
break;
}
}
}
示例11: ISNewNumber
void ISNewNumber(const char *dev, const char *name, double values[], char *names[], int num)
{
ISInit();
for (int i = 0; i < cameraCount; i++) {
GPhotoCCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name)) {
camera->ISNewNumber(dev, name, values, names, num);
if (dev != NULL)
break;
}
}
}
示例12: ISGetProperties
void ISGetProperties(const char *dev)
{
ISInit();
for (int i = 0; i < iNumofConnectCameras; i++)
{
ASICCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name))
{
camera->ISGetProperties(dev);
if (dev != NULL)
break;
}
}
}
示例13: ISNewText
void ISNewText(const char *dev, const char *name, char *texts[], char *names[], int num)
{
ISInit();
for (int i = 0; i < cameraCount; i++)
{
FishCampCCD *camera = cameras[i];
if (dev == nullptr || !strcmp(dev, camera->name))
{
camera->ISNewText(dev, name, texts, names, num);
if (dev != nullptr)
break;
}
}
}
示例14: ISNewText
void ISNewText(const char *dev, const char *name, char *texts[], char *names[], int num)
{
ISInit();
for (int i = 0; i < iNumofConnectCameras; i++)
{
ASICCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name))
{
camera->ISNewText(dev, name, texts, names, num);
if (dev != NULL)
break;
}
}
}
示例15: ISNewSwitch
void ISNewSwitch(const char *dev, const char *name, ISState *states, char *names[], int num)
{
ISInit();
for (int i = 0; i < iNumofConnectCameras; i++)
{
ASICCD *camera = cameras[i];
if (dev == NULL || !strcmp(dev, camera->name))
{
camera->ISNewSwitch(dev, name, states, names, num);
if (dev != NULL)
break;
}
}
}