• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ ISInit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中ISInit函数的典型用法代码示例。如果您正苦于以下问题:C++ ISInit函数的具体用法?C++ ISInit怎么用?C++ ISInit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ISInit函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: ISGetProperties

void ISGetProperties(const char *dev)
{
    ISInit();

    if (cameraCount == 0)
    {
        IDMessage(nullptr, "No Moravian cameras detected. Power on?");
        return;
    }

    for (int i = 0; i < cameraCount; i++)
    {
        MICCD *camera = cameras[i];
        if (!dev || !strcmp(dev, camera->name))
        {
            camera->ISGetProperties(dev);
            if (dev)
                break;
        }
    }
}
开发者ID:azwing,项目名称:indi,代码行数:21,代码来源:mi_ccd.cpp


示例17: ISGetProperties

void ISGetProperties(const char *dev)
{
    ISInit();

    if (cameraCount == 0)
    {
        IDLog("Unable to find Fishcamp CCD. Power OK? Please check the log file under ~/.indi for more details.\n");
        return;
    }

    for (int i = 0; i < cameraCount; i++)
    {
        FishCampCCD *camera = cameras[i];
        if (dev == nullptr || !strcmp(dev, camera->name))
        {
            camera->ISGetProperties(dev);
            if (dev != nullptr)
                break;
        }
    }
}
开发者ID:azwing,项目名称:indi,代码行数:21,代码来源:indi_fishcamp.cpp


示例18: ISNewSwitch

/**************************************************************************************
** Process new switch from client
***************************************************************************************/
void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
{
 ISInit();
 simpleScope->ISNewSwitch(dev, name, states, names, n);
}
开发者ID:LabAixBidouille,项目名称:Indi,代码行数:8,代码来源:simplescope.cpp


示例19: ISNewText

/**************************************************************************************
** Process new text from client
***************************************************************************************/
void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
{
 ISInit();
 simpleScope->ISNewText(dev, name, texts, names, n);
}
开发者ID:LabAixBidouille,项目名称:Indi,代码行数:8,代码来源:simplescope.cpp


示例20: ISNewNumber

/**************************************************************************************
** Process new number from client
***************************************************************************************/
void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
{
 ISInit();
 simpleScope->ISNewNumber(dev, name, values, names, n);
}
开发者ID:LabAixBidouille,项目名称:Indi,代码行数:8,代码来源:simplescope.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ ISK函数代码示例发布时间:2022-05-30
下一篇:
C++ ISGetLocalSize函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap