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


C++ PropertyUint类代码示例

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


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

示例1: ServicePropertySetValueUint

uint32_t STDCALL ServicePropertySetValueUint(ServiceProperty aProperty, uint32_t aValue)
{
    PropertyUint* prop = reinterpret_cast<PropertyUint*>(aProperty);
    ASSERT(prop != NULL);
    if (prop->SetValue(aValue)) {
        return 1;
    }
    return 0;
}
开发者ID:MatthewMiddleweek,项目名称:ohNet,代码行数:9,代码来源:ServiceC.cpp

示例2: ServicePropertyValueUint

int32_t STDCALL ServicePropertyValueUint(ServiceProperty aProperty, uint32_t* aValue)
{
    PropertyUint* prop = reinterpret_cast<PropertyUint*>(aProperty);
    ASSERT(prop != NULL);
    int32_t err = 0;
    try {
        *aValue = prop->Value();
    }
    catch (PropertyError&) {
        err = -1;
    }
    return err;
}
开发者ID:MatthewMiddleweek,项目名称:ohNet,代码行数:13,代码来源:ServiceC.cpp

示例3: SetPropertyUint

bool DvProvider::SetPropertyUint(PropertyUint& aProperty, TUint aValue)
{
    if (aProperty.SetValue(aValue)) {
        TryPublishUpdate();
        return true;
    }
    return false;
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:8,代码来源:DvProvider.cpp

示例4: PropertyReadLock

void CpProxyAvOpenhomeOrgInfo1C::PropertyBitDepth(TUint& aBitDepth) const
{
    PropertyReadLock();
    ASSERT(IsSubscribed());
    aBitDepth = iBitDepth->Value();
    PropertyReadUnlock();
}
开发者ID:alexkit,项目名称:ohNet,代码行数:7,代码来源:CpAvOpenhomeOrgInfo1C.cpp

示例5: PropertyReadLock

void CpProxyAvOpenhomeOrgTime1C::PropertySeconds(TUint& aSeconds) const
{
    PropertyReadLock();
    ASSERT(IsSubscribed());
    aSeconds = iSeconds->Value();
    PropertyReadUnlock();
}
开发者ID:alexkit,项目名称:ohNet,代码行数:7,代码来源:CpAvOpenhomeOrgTime1C.cpp

示例6:

void DvProviderAvOpenhomeOrgInfo1C::GetPropertyDuration(TUint& aValue)
{
    aValue = iPropertyDuration->Value();
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:4,代码来源:DvAvOpenhomeOrgInfo1C.cpp

示例7: ASSERT

void DvProviderAvOpenhomeOrgMediaServer1C::GetPropertyUpdateCount(TUint& aValue)
{
    ASSERT(iPropertyUpdateCount != NULL);
    aValue = iPropertyUpdateCount->Value();
}
开发者ID:tata-,项目名称:ohNet-1,代码行数:5,代码来源:DvAvOpenhomeOrgMediaServer1C.cpp

示例8: ASSERT

void DvProviderAvOpenhomeOrgCredentials1C::GetPropertySequenceNumber(TUint& aValue)
{
    ASSERT(iPropertySequenceNumber != NULL);
    aValue = iPropertySequenceNumber->Value();
}
开发者ID:DoomHammer,项目名称:ohNetGenerated,代码行数:5,代码来源:DvAvOpenhomeOrgCredentials1C.cpp

示例9:

void DvProviderAvOpenhomeOrgTime1C::GetPropertySeconds(TUint& aValue)
{
    aValue = iPropertySeconds->Value();
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:4,代码来源:DvAvOpenhomeOrgTime1C.cpp

示例10: a

void CpProxyAvOpenhomeOrgTime1C::PropertyDuration(TUint& aDuration) const
{
    AutoMutex a(GetPropertyReadLock());
    CheckSubscribed();
    aDuration = iDuration->Value();
}
开发者ID:Montellese,项目名称:ohNetGenerated,代码行数:6,代码来源:CpAvOpenhomeOrgTime1C.cpp

示例11: ASSERT

void DvProviderAvOpenhomeOrgRadio1C::GetPropertyId(TUint& aValue)
{
    ASSERT(iPropertyId != NULL);
    aValue = iPropertyId->Value();
}
开发者ID:astaykov,项目名称:ohNet,代码行数:5,代码来源:DvAvOpenhomeOrgRadio1C.cpp

示例12: ASSERT

void DvProviderUpnpOrgContentDirectory1C::GetPropertySystemUpdateID(TUint& aValue)
{
    ASSERT(iPropertySystemUpdateID != NULL);
    aValue = iPropertySystemUpdateID->Value();
}
开发者ID:astaykov,项目名称:ohNet,代码行数:5,代码来源:DvUpnpOrgContentDirectory1C.cpp


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