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

C++ setVersion函数代码示例

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

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



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

示例1: strncpy

//==========================================================================
GPhotoCCD::GPhotoCCD()
{
    // For now let's set name to default name. In the future, we need to to support multiple devices per one driver
    if (*getDeviceName() == '\0')
        strncpy(name, getDefaultName(), MAXINDINAME);
    else
        strncpy(name, getDeviceName(), MAXINDINAME);

    gphotodrv = NULL;
    frameInitialized=false;
    on_off[0] = strdup("On");
    on_off[1] = strdup("Off");

    setVersion(INDI_GPHOTO_VERSION_MAJOR, INDI_GPHOTO_VERSION_MINOR);
}
开发者ID:phomer60,项目名称:indi,代码行数:16,代码来源:gphoto_ccd.cpp


示例2: BaseComponent

CartoComponent::CartoComponent()
    : BaseComponent("org.carousel.demos.Carto")
{
    IScriptExtension *scriptExtension = new CartoScriptExtension(this);
    registerExtension<IScriptExtension>(scriptExtension);

    addParent("org.carousel.QmlScripting", 1, 0);
    addParent("org.carousel.demos.Display", 1, 0);
    addParent("org.carousel.demos.Geodatabase", 1, 0);
    addParent("org.carousel.demos.Geometry", 1, 0);
    setShortName("Carto");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
开发者ID:yudjin87,项目名称:tour_du_monde,代码行数:15,代码来源:CartoComponent.cpp


示例3: setDescriptorId

pagauss::pagauss()
{
   setDescriptorId("0d63a7b0-6c16-11e0-ae3e-0800200c9a66}");
   setName("Gaussian blur");
   setVersion("Sample");
   setDescription("Perform gaussian blur on a given image "
      "of the provided raster element.");
   setCreator("Pratik Anand");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Edge Detection");
   setMenuLocation("[Tutorial]/pagauss_res");
   setAbortSupported(true);
}
开发者ID:pratikone,项目名称:gsoc2011-opticks,代码行数:15,代码来源:pagauss.cpp


示例4: setDescriptorId

Scharr::Scharr()
{
   setDescriptorId("{2100746F-68FD-4ABB-BF84-02C887D4F896}");
   setName("Scharr Edge Detection");
   setVersion("Sample");
   setDescription("Calculate and return an edge detection raster element for first band "
      "of the provided raster element.");
   setCreator("Opticks Community");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Edge Detection");
   setMenuLocation("[Edge Detection]/Scharr Filter");
   setAbortSupported(true);
}
开发者ID:Siddharthk,项目名称:Opticks-,代码行数:15,代码来源:Scharr.cpp


示例5: setDescriptorId

Prewitt::Prewitt()
{
   setDescriptorId("{90FDF5C6-C1DD-4D31-9291-8DFA6B654F2D}");
   setName("Prewitt Edge Detection");
   setVersion("Sample");
   setDescription("Calculate and return an edge detection raster element for first band "
      "of the provided raster element.");
   setCreator("Opticks Community");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Edge Detection");
   setMenuLocation("[Edge Detection]/Prewitt Filter");
   setAbortSupported(true);
}
开发者ID:Siddharthk,项目名称:Opticks-,代码行数:15,代码来源:Prewitt.cpp


示例6: m_isInitialized

EarthquakePlugin::EarthquakePlugin()
    : m_isInitialized( false ),
      m_configDialog( 0 )
{
    setNameId( "earthquake" );
    setVersion( "1.0" );
    setCopyrightYears( QList<int>() << 2010 << 2011 );
    addAuthor( QString::fromUtf8( "Utku Aydın" ), "[email protected]" );
    addAuthor( "Daniel Marth", "[email protected]" );

    setEnabled( true ); // Plugin is enabled by default
    setVisible( false ); // Plugin is invisible by default
    connect( this, SIGNAL( settingsChanged( QString ) ),
             this, SLOT( updateSettings() ) );
}
开发者ID:MChemodanov,项目名称:marble,代码行数:15,代码来源:EarthquakePlugin.cpp


示例7: BaseComponent

NavigationOperationsComponent::NavigationOperationsComponent(QObject *parent /*= nullptr*/)
    : BaseComponent("org.carousel.demos.NavigationOperations", parent)
{
    IInteractiveExtension *interactiveExtension = new NavigationOperationsInteractiveExtension(this);
    registerExtension<IInteractiveExtension>(interactiveExtension);

    addParent("org.carousel.demos.Geodatabase", 1, 0);
    addParent("org.carousel.demos.Display", 1, 0);
    addParent("org.carousel.demos.Carto", 1, 0);
    addParent("org.carousel.demos.CartoUI", 1, 0);
    setShortName("Navigation Operations");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
开发者ID:yudjin87,项目名称:tour_du_monde,代码行数:15,代码来源:NavigationOperationsComponent.cpp


示例8: ASSERT

void IDBDatabaseBackendImpl::close(PassRefPtr<IDBDatabaseCallbacks> prpCallbacks)
{
    RefPtr<IDBDatabaseCallbacks> callbacks = prpCallbacks;
    ASSERT(m_databaseCallbacksSet.contains(callbacks));
    m_databaseCallbacksSet.remove(callbacks);
    if (m_databaseCallbacksSet.size() > 1)
        return;

    while (!m_pendingSetVersionCalls.isEmpty()) {
        ExceptionCode ec = 0;
        RefPtr<PendingSetVersionCall> pendingSetVersionCall = m_pendingSetVersionCalls.takeFirst();
        setVersion(pendingSetVersionCall->version(), pendingSetVersionCall->callbacks(), pendingSetVersionCall->databaseCallbacks(), ec);
        ASSERT(!ec);
    }
}
开发者ID:Xertz,项目名称:EAWebKit,代码行数:15,代码来源:IDBDatabaseBackendImpl.cpp


示例9: setDescriptorId

adaptive_median::adaptive_median()
{
	setDescriptorId("{FF1EFA03-0888-4199-AB40-0503C9FABC80}");
	setName("adaptive_median");
	setDescription
		("Perform noise reduction on an image using an adaptive median filter");
	setCreator("Pratik Anand");
	setVersion("0.1");
	setCopyright("Copyright (C) 2011, Pratik Anand <[email protected]>");
	setProductionStatus(true);
	setType("Algorithm");
	setSubtype("Noise reduction");
	setMenuLocation("[Photography]/adaptive_median");
	setAbortSupported(false);
}
开发者ID:vijeshm,项目名称:Opticks-Photography-Addons,代码行数:15,代码来源:adaptive_meadian.cpp


示例10: while

void HTTPRequest::read(std::istream& istr)
{
    static const int eof = std::char_traits<char>::eof();

    std::string method;
    std::string uri;
    std::string version;
    method.reserve(16);
    uri.reserve(64);
    version.reserve(16);
    int ch = istr.get();
    if (ch == eof) throw NoMessageException();
    while (Poco::Ascii::isSpace(ch)) ch = istr.get();
    if (ch == eof) throw MessageException("No HTTP request header");
    while (!Poco::Ascii::isSpace(ch) && ch != eof && method.length() < MAX_METHOD_LENGTH)
    {
        method += (char) ch;
        ch = istr.get();
    }
    if (!Poco::Ascii::isSpace(ch)) throw MessageException("HTTP request method invalid or too long");
    while (Poco::Ascii::isSpace(ch)) ch = istr.get();
    while (!Poco::Ascii::isSpace(ch) && ch != eof && uri.length() < MAX_URI_LENGTH)
    {
        uri += (char) ch;
        ch = istr.get();
    }
    if (!Poco::Ascii::isSpace(ch)) throw MessageException("HTTP request URI invalid or too long");
    while (Poco::Ascii::isSpace(ch)) ch = istr.get();
    while (!Poco::Ascii::isSpace(ch) && ch != eof && version.length() < MAX_VERSION_LENGTH)
    {
        version += (char) ch;
        ch = istr.get();
    }
    if (!Poco::Ascii::isSpace(ch)) throw MessageException("Invalid HTTP version string");
    while (ch != '\n' && ch != eof)
    {
        ch = istr.get();
    }
    HTTPMessage::read(istr);
    ch = istr.get();
    while (ch != '\n' && ch != eof)
    {
        ch = istr.get();
    }
    setMethod(method);
    setURI(uri);
    setVersion(version);
}
开发者ID:as2120,项目名称:ZPoco,代码行数:48,代码来源:HTTPRequest.cpp


示例11: _buffer

CodeRevision::CodeRevision() :
    _buffer(NULL),
    _bytecode(NULL),
    _parsed_program(NULL),
    _parse_tree(NULL),
    _selected(false),
    _tmp_fd(NULL),
    _branch_count( 0 ),
    _original(NULL)
    { 
        _setupButtons();
        _buffer = new TextBuffer();
        _id = IDManager::instance()->getPickID();
        setVersion();
        _status = rev_NEW;
    }
开发者ID:ccrma,项目名称:audicle,代码行数:16,代码来源:audicle_ui_coding.cpp


示例12: FilterInterface

QSICCD::QSICCD() : FilterInterface(this)
{
    canSetGain            = false;
    canControlFan         = false;
    canSetAB              = false;
    canFlush              = false;
    canChangeReadoutSpeed = false;

    // Initial setting. Updated after connction to camera.
    FilterSlotN[0].min = 1;
    FilterSlotN[0].max = 5;

    QSICam.put_UseStructuredExceptions(true);

    setVersion(QSI_VERSION_MAJOR, QSI_VERSION_MINOR);
}
开发者ID:rrogge,项目名称:indi,代码行数:16,代码来源:qsi_ccd.cpp


示例13: setDescriptorId

Deconvolution::Deconvolution()
{
   setDescriptorId("{CC472EDD-2FD5-42E1-8138-DF1519A480D8}");
   setName("Deconvolution Enhancement");
   setDescription("Image Enhancement through deconvolution");
   setCreator("Yiwei Zhang");
   setVersion("Sample");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Image Enhancement");
   setMenuLocation("[Astronomy]/Deconvolution");
   setAbortSupported(true);
   
   pOriginalImage = NULL;
}
开发者ID:felipebetancur,项目名称:Astronomy-Image-Processing,代码行数:16,代码来源:Deconvolution.cpp


示例14: backToHomeScreen

void backToHomeScreen (void* button) {

    ((button_t*) button)->hasBeenAcknowledged = 1;

    aScreen = BOARD_SELECTION;

    selected_board->board.writeBytes[1] = 128;
    cycleSelected = 128;
    rampSelected = 128;

    BSP_LCD_Clear(LCD_COLOR_WHITE);

    setVersion(version);

    drawHomeScreen();
}
开发者ID:gciotto,项目名称:workspace,代码行数:16,代码来源:prosac.c


示例15: setDescriptorId

TextureSegmentation::TextureSegmentation()
{
   setDescriptorId("{21860EDB-3761-4e7f-B4DF-169369576749}");
   setName("SAR Image Segmentation");
   setDescription("Segmentation for SAR");
   setCreator("Yiwei Zhang");
   setVersion("Sample");
   setCopyright("Copyright (C) 2008, Ball Aerospace & Technologies Corp.");
   setProductionStatus(false);
   setType("Sample");
   setSubtype("Segmentation");
   setMenuLocation("[SAR]/Segmentation");
   setAbortSupported(true);

   pBuffer = NULL;
}
开发者ID:adakite,项目名称:Opticks-SAR,代码行数:16,代码来源:TextureSegmentation.cpp


示例16: FilterInterface

MICCD::MICCD(int camId, bool eth) : FilterInterface(this)
{
    cameraId = camId;
    isEth    = eth;

    if (isEth)
        cameraHandle = gxccd_initialize_eth(cameraId);
    else
        cameraHandle = gxccd_initialize_usb(cameraId);
    if (!cameraHandle)
        IDLog("Error connecting MI camera!\n");

    char sp[MAXINDINAME];
    if (gxccd_get_string_parameter(cameraHandle, GSP_CAMERA_DESCRIPTION, sp, sizeof(sp)) < 0)
    {
        gxccd_get_last_error(cameraHandle, sp, sizeof(sp));
        IDLog("Error getting MI camera info: %s.\n", sp);
        strncpy(name, "MI CCD", MAXINDIDEVICE);
    }
    else
    {
        // trim trailing spaces
        char *end = sp + strlen(sp) - 1;
        while (end > sp && isspace(*end))
            end--;
        *(end + 1) = '\0';

        snprintf(name, MAXINDINAME, "MI CCD %s", sp);
        IDLog("Detected camera: %s.\n", name);
    }

    gxccd_get_integer_parameter(cameraHandle, GIP_READ_MODES, &numReadModes);
    gxccd_get_integer_parameter(cameraHandle, GIP_FILTERS, &numFilters);
    gxccd_get_integer_parameter(cameraHandle, GIP_MAX_FAN, &maxFanValue);
    gxccd_get_integer_parameter(cameraHandle, GIP_MAX_WINDOW_HEATING, &maxHeatingValue);

    gxccd_release(cameraHandle);
    cameraHandle = nullptr;

    hasGain    = false;
    useShutter = true;

    canDoPreflash = false;

    setDeviceName(name);
    setVersion(INDI_MI_VERSION_MAJOR, INDI_MI_VERSION_MINOR);
}
开发者ID:azwing,项目名称:indi,代码行数:47,代码来源:mi_ccd.cpp


示例17: getGpioKeys

MockInputDeviceNode* getGpioKeys() {
    auto node = new MockInputDeviceNode();
    node->setPath("/dev/input/event0");
    node->setName("gpio-keys");
    node->setLocation("gpio-keys/input0");
    // UniqueId not set
    node->setBusType(0x0019);
    node->setVendorId(0x0001);
    node->setProductId(0x0001);
    node->setVersion(0x0100);
    node->addKeys(KEY_CONNECT);
    // No relative axes
    // No absolute axes
    // No switches
    node->addInputProperty(INPUT_PROP_DIRECT);
    return node;
}
开发者ID:MIPS,项目名称:hardware-libhardware,代码行数:17,代码来源:InputMocks.cpp


示例18: kDebug

bool KPBinaryIface::parseHeader(const QString& output)
{
    QString firstLine = output.section('\n', m_headerLine, m_headerLine);
    kDebug() << path() << " help header line: \n" << firstLine;
    if (firstLine.startsWith(m_headerStarts))
    {
        QString version = firstLine.remove(0, m_headerStarts.length());
        if (version.startsWith("Pre-Release "))
        {
            version.remove("Pre-Release ");            // Special case with Hugin beta.
            m_developmentVersion = true;
        }
        setVersion(version);
        return true;
    }
    return false;
}
开发者ID:NathanDM,项目名称:kipi-plugins,代码行数:17,代码来源:kpbinaryiface.cpp


示例19: getH2wButton

MockInputDeviceNode* getH2wButton() {
    auto node = new MockInputDeviceNode();
    node->setPath("/dev/input/event4");
    node->setName("h2w button");
    // Location not set
    // UniqueId not set
    node->setBusType(0);
    node->setVendorId(0);
    node->setProductId(0);
    node->setVersion(0);
    node->addKeys(KEY_MEDIA);
    // No relative axes
    // No absolute axes
    // No switches
    node->addInputProperty(INPUT_PROP_DIRECT);
    return node;
}
开发者ID:MIPS,项目名称:hardware-libhardware,代码行数:17,代码来源:InputMocks.cpp


示例20: if

void MetaInfoReader::readItemLibraryEntryProperty(const QString &name, const QVariant &value)
{
    if (name == QStringLiteral("name")) {
        m_currentEntry.setName(value.toString());
    } else if (name == QStringLiteral("category")) {
        m_currentEntry.setCategory(value.toString());
    } else if (name == QStringLiteral("libraryIcon")) {
        m_currentEntry.setLibraryEntryIconPath(absoluteFilePathForDocument(value.toString()));
    } else if (name == QStringLiteral("version")) {
        setVersion(value.toString());
    } else if (name == QStringLiteral("requiredImport")) {
        m_currentEntry.setRequiredImport(value.toString());
    } else {
        addError(tr("Unknown property for ItemLibraryEntry %1").arg(name), currentSourceLocation());
        setParserState(Error);
    }
}
开发者ID:choenig,项目名称:qt-creator,代码行数:17,代码来源:metainforeader.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ setVideoMode函数代码示例发布时间:2022-05-30
下一篇:
C++ setVelocity函数代码示例发布时间: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