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


C++ setVersion函数代码示例

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


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


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