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


C++ GetValue函数代码示例

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


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

示例1: GetLyricSI

LPCTSTR GetLyricSI(FILE_INFO* info) {
	return GetValue(info, FIELD_LYRIC_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例2: GetValue

/* NumberTextCtrl::isDecrement
 * Returns true if the entered value is a decrement
 *******************************************************************/
bool NumberTextCtrl::isDecrement()
{
	return GetValue().StartsWith("--");
}
开发者ID:Gaerzi,项目名称:SLADE,代码行数:7,代码来源:NumberTextCtrl.cpp

示例3: GetValue

	wxRect DimRect::GetValue(const wxSize& referenceSize) const {
		return GetValue(wxRect(0, 0, referenceSize.GetWidth(), referenceSize.GetHeight()));
	}
开发者ID:alexpana,项目名称:wxStyle,代码行数:3,代码来源:DimRect.cpp

示例4: SetValue

void wxSlider::SetValue( int value )
{
    if (GetValue() != value)
        GTKSetValue(value);
}
开发者ID:erwincoumans,项目名称:wxWidgets,代码行数:5,代码来源:slider.cpp

示例5: GetValue

string Message::GetMessageType()
{
    return GetValue(MessageTag::Type);
}
开发者ID:buxinqiufeng,项目名称:UdpSocket,代码行数:4,代码来源:Message.cpp

示例6: RGB2Lab

// ------------------------------------------------------------------------
double LABHistogram2D::GetValue(CvScalar bgr) {
	double lab[3];
	RGB2Lab(bgr.val[2], bgr.val[1], bgr.val[0], lab);
	return GetValue(lab[1], lab[2]);
}
开发者ID:githubbar,项目名称:NewVision,代码行数:6,代码来源:LABHistogram2D.cpp

示例7: GetURLSI

LPCTSTR GetURLSI(FILE_INFO* info) {
	return GetValue(info, FIELD_URL_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例8: GetEncodest

LPCTSTR GetEncodest(FILE_INFO* info) {
	return GetValue(info, FIELD_ENCODEST);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例9: GetAlbumArtistSI

LPCTSTR GetAlbumArtistSI(FILE_INFO* info) {
	return GetValue(info, FIELD_ALBM_ARTIST_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例10: GetOrigArtistSI

LPCTSTR GetOrigArtistSI(FILE_INFO* info) {
	return GetValue(info, FIELD_ORIG_ARTIST_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例11: GetComposerSI

LPCTSTR GetComposerSI(FILE_INFO* info) {
	return GetValue(info, FIELD_COMPOSER_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例12: GetWriterSI

LPCTSTR GetWriterSI(FILE_INFO* info) {
	return GetValue(info, FIELD_WRITER_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例13: GetCommissionSI

LPCTSTR GetCommissionSI(FILE_INFO* info) {
	return GetValue(info, FIELD_COMMISSION_SI);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp

示例14: CHECKNULL

MgReader* MgdFeatureNumericFunctions::Execute()
{
    CHECKNULL((MgReader*)m_reader, L"MgdFeatureNumericFunctions.Execute");
    CHECKNULL(m_customFunction, L"MgdFeatureNumericFunctions.Execute");

    Ptr<MgReader> reader;
    MG_LOG_TRACE_ENTRY(L"MgdFeatureNumericFunctions::Execute");
    // TODO: Can this be optimized to process them as they are read?
    // TODO: Should we put a limit on double buffer
    INT32 funcCode = -1;
    bool supported = MgdFeatureUtil::FindCustomFunction(m_customFunction, funcCode);
    if (supported)
    {
        // In case we have int64 but is a custom function use double to evaluate it.
        // Since we don't have a type which can make operations with big numbers we will fix only Unique/Min/Max functions
        // Even if we treat int64 different from double we don't solve the issue with truncation error.
        // If we emulate SUM adding two big numbers we will get overflow even we use int64, e.g.:
        // Int64 val1 = 9223372036854775806;
        // Int64 val2 = 9223372036854775807;
        // Int64 sum = val1 + val2; // the sum value will be -3 so is overflow error
        // In the future we will need to implement a type which can handle int64 numbers without getting overflow a sum/avg is calculated.
        // Since all other functions calculate a sum we will use double, at least to be able to get the right result for small numbers.
        if (!(m_type == MgPropertyType::Int64 && (funcCode == MINIMUM || funcCode == MAXIMUM || funcCode == UNIQUE)))
        {
            VECTOR values, distValues;
            while(m_reader->ReadNext())
            {
                // TODO: Add support for Geometry extents
                double val = GetValue();
                values.push_back(val);
            }
            // Calulate the distribution on the collected values
            CalculateDistribution(values, distValues);

            // Create FeatureReader from distribution values
            reader = GetReader(distValues);
        }
        else
        {
            VECTOR_INT64 values, distValues;
            while(m_reader->ReadNext())
            {
                INT64 int64Val = 0;
                if (!m_reader->IsNull(m_propertyName))
                    int64Val = m_reader->GetInt64(m_propertyName);
                values.push_back(int64Val);
            }

            // Calulate the distribution on the collected values
            CalculateDistribution(values, distValues);

            // Create FeatureReader from distribution values
            Ptr<MgdInt64DataReaderCreator> drCreator = new MgdInt64DataReaderCreator(m_propertyAlias);
            reader = drCreator->Execute(distValues);
        }
    }
    else
    {
        // just return an emty reader
        VECTOR distValues;
        reader = GetReader(distValues);
    }

    return reader.Detach();
}
开发者ID:asir6,项目名称:Colt,代码行数:65,代码来源:FeatureNumericFunctions.cpp

示例15: GetOther

LPCTSTR GetOther(FILE_INFO* info) {
	return GetValue(info, FIELD_OTHER);
}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,代码来源:STEPlugin.cpp


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