当前位置: 首页>>代码示例>>C++>>正文


C++ ISInit函数代码示例

本文整理汇总了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");
        }

    }
}
开发者ID:azwing,项目名称:indi,代码行数:29,代码来源:indi_fishcamp.cpp

示例2: ISGetProperties

void ISGetProperties(const char *dev)
{
    ISInit();
    if (dev == nullptr || !strcmp(dev, receiver->getDeviceName()))
    {
        receiver->ISGetProperties(dev);
    }
}
开发者ID:azwing,项目名称:indi,代码行数:8,代码来源:detector_simulator.cpp

示例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);
    }
}
开发者ID:azwing,项目名称:indi,代码行数:8,代码来源:detector_simulator.cpp

示例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);
    }
}
开发者ID:azwing,项目名称:indi,代码行数:8,代码来源:detector_simulator.cpp

示例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);
    }
}
开发者ID:azwing,项目名称:indi,代码行数:8,代码来源:detector_simulator.cpp

示例6: ISSnoopDevice

void ISSnoopDevice(XMLEle *root)
{
    ISInit();
    for (int i = 0; i < cameraCount; i++)
    {
        MICCD *camera = cameras[i];
        camera->ISSnoopDevice(root);
    }
}
开发者ID:azwing,项目名称:indi,代码行数:9,代码来源:mi_ccd.cpp

示例7: ISSnoopDevice

void ISSnoopDevice(XMLEle *root)
{
    ISInit();

    for (int i = 0; i < iNumofConnectCameras; i++)
    {
      ASICCD *camera = cameras[i];
      camera->ISSnoopDevice(root);
    }
}
开发者ID:seanhoughton,项目名称:indi,代码行数:10,代码来源:asi_ccd.cpp

示例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;
    }
  }
}
开发者ID:A-j-K,项目名称:indi,代码行数:11,代码来源:gphoto_ccd.cpp

示例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;
    }
  }
}
开发者ID:A-j-K,项目名称:indi,代码行数:11,代码来源:gphoto_ccd.cpp

示例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;
    }
  }
}
开发者ID:A-j-K,项目名称:indi,代码行数:11,代码来源:gphoto_ccd.cpp

示例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;
    }
  }
}
开发者ID:A-j-K,项目名称:indi,代码行数:12,代码来源:gphoto_ccd.cpp

示例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;
    }
  }
}
开发者ID:seanhoughton,项目名称:indi,代码行数:14,代码来源:asi_ccd.cpp

示例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;
        }
    }
}
开发者ID:azwing,项目名称:indi,代码行数:14,代码来源:indi_fishcamp.cpp

示例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;
    }
  }
}
开发者ID:seanhoughton,项目名称:indi,代码行数:14,代码来源:asi_ccd.cpp

示例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;
    }
  }
}
开发者ID:seanhoughton,项目名称:indi,代码行数:14,代码来源:asi_ccd.cpp


注:本文中的ISInit函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。