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


C++ Brh::Extract方法代码示例

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


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

示例1:

void STDCALL DvProviderAvOpenhomeOrgRadio1GetPropertyIdArray(THandle aProvider, char** aValue, uint32_t* aValueLen)
{
    Brh buf;
    reinterpret_cast<DvProviderAvOpenhomeOrgRadio1C*>(aProvider)->GetPropertyIdArray(buf);
    *aValueLen = buf.Bytes();
    *aValue = (char*)buf.Extract();
}
开发者ID:astaykov,项目名称:ohNet,代码行数:7,代码来源:DvAvOpenhomeOrgRadio1C.cpp

示例2: DvInvocationReadBinary

int32_t DvInvocationReadBinary(DvInvocationC aInvocation, const char* aName, uint8_t** aData, uint32_t* aLen)
{
    IDviInvocation* invocation = InvocationFromHandle(aInvocation);
    try {
        Brh value;
        invocation->InvocationReadBinary(aName, value);
        *aLen = value.Bytes();
        *aData = (uint8_t*)value.Extract();
    }
    catch (InvocationError&) {
        return -1;
    }
    return 0;
}
开发者ID:wifigeek,项目名称:ohNet,代码行数:14,代码来源:DvProviderC.cpp

示例3: WaitForDeviceDiscovery

void CpDevices::WaitForDeviceDiscovery()
{
    (void)iAddedSem.Clear();
    iAddedSem.Wait(30*1000); // allow up to 30 seconds to issue the msearch and receive a response
    // check that we not only have a device but that its at a different location from previously
    ASSERT(iDevices.size() == 1);
    CpDevice* device = iDevices[0];
    Brh locationBuf;
    ASSERT(device->GetAttribute("Upnp.Location", locationBuf));
    const TChar* location = locationBuf.Extract();
    if (iLocation != NULL) {
        ASSERT(strcmp(location, iLocation) != 0);
    }
    iLocation = location;
}
开发者ID:Montellese,项目名称:ohNet,代码行数:15,代码来源:TestAdapterChange.cpp

示例4: DvDeviceStandardGetResourceManagerUri

void STDCALL DvDeviceStandardGetResourceManagerUri(DvDeviceC aDevice, THandle aAdapter, char** aUri, uint32_t* aLen)
{
    Brh uri;
    NetworkAdapter* nif = (NetworkAdapter*)aAdapter;
    ASSERT(nif != NULL);
    reinterpret_cast<DvDeviceStandard*>(DviDeviceC::DeviceFromHandle(aDevice))->GetResourceManagerUri(*nif, uri);
    if (uri.Bytes() == 0) {
        *aUri = NULL;
        *aLen = 0;
    }
    else {
        *aLen = uri.Bytes();
        *aUri = (char*)uri.Extract();
    }
}
开发者ID:DoomHammer,项目名称:ohNet,代码行数:15,代码来源:DvDeviceC.cpp

示例5: stateStr

void ControlPointProxy::CPUpnpAv::upnpAvPause()
{
    Brh state;
    Brh dummy;

    if (iIsActive)
    {
        iUpnpAvProxy->SyncGetTransportInfo(0, state, dummy, dummy);

        string stateStr(state.Extract());

        if (canPause(stateStr))
        {
            iUpnpAvProxy->SyncPause(0);
        }
    }
}
开发者ID:kylegordon,项目名称:ohPlayer,代码行数:17,代码来源:ControlPointProxy.cpp


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