本文整理汇总了C++中GetValue函数的典型用法代码示例。如果您正苦于以下问题:C++ GetValue函数的具体用法?C++ GetValue怎么用?C++ GetValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetValue函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetLyricSI
LPCTSTR GetLyricSI(FILE_INFO* info) {
return GetValue(info, FIELD_LYRIC_SI);
}
示例2: GetValue
/* NumberTextCtrl::isDecrement
* Returns true if the entered value is a decrement
*******************************************************************/
bool NumberTextCtrl::isDecrement()
{
return GetValue().StartsWith("--");
}
示例3: GetValue
wxRect DimRect::GetValue(const wxSize& referenceSize) const {
return GetValue(wxRect(0, 0, referenceSize.GetWidth(), referenceSize.GetHeight()));
}
示例4: SetValue
void wxSlider::SetValue( int value )
{
if (GetValue() != value)
GTKSetValue(value);
}
示例5: GetValue
string Message::GetMessageType()
{
return GetValue(MessageTag::Type);
}
示例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]);
}
示例7: GetURLSI
LPCTSTR GetURLSI(FILE_INFO* info) {
return GetValue(info, FIELD_URL_SI);
}
示例8: GetEncodest
LPCTSTR GetEncodest(FILE_INFO* info) {
return GetValue(info, FIELD_ENCODEST);
}
示例9: GetAlbumArtistSI
LPCTSTR GetAlbumArtistSI(FILE_INFO* info) {
return GetValue(info, FIELD_ALBM_ARTIST_SI);
}
示例10: GetOrigArtistSI
LPCTSTR GetOrigArtistSI(FILE_INFO* info) {
return GetValue(info, FIELD_ORIG_ARTIST_SI);
}
示例11: GetComposerSI
LPCTSTR GetComposerSI(FILE_INFO* info) {
return GetValue(info, FIELD_COMPOSER_SI);
}
示例12: GetWriterSI
LPCTSTR GetWriterSI(FILE_INFO* info) {
return GetValue(info, FIELD_WRITER_SI);
}
示例13: GetCommissionSI
LPCTSTR GetCommissionSI(FILE_INFO* info) {
return GetValue(info, FIELD_COMMISSION_SI);
}
示例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();
}
示例15: GetOther
LPCTSTR GetOther(FILE_INFO* info) {
return GetValue(info, FIELD_OTHER);
}