本文整理汇总了C++中Brh::Ptr方法的典型用法代码示例。如果您正苦于以下问题:C++ Brh::Ptr方法的具体用法?C++ Brh::Ptr怎么用?C++ Brh::Ptr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Brh
的用法示例。
在下文中一共展示了Brh::Ptr方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetAttribute
TBool CpDeviceCpp::GetAttribute(const char* aKey, std::string& aValue) const
{
Brh val;
aValue.erase(aValue.begin(), aValue.end());
if (iDevice.GetAttribute(aKey, val)) {
aValue.append((const char*)val.Ptr(), val.Bytes());
return true;
}
return false;
}
示例2: Write
void DviProtocolUpnpServiceXmlWriter::Write(const DviService& aService, const DviProtocolUpnp& aDevice, IResourceWriter& aResourceWriter)
{
WriterBwh writer(1024);
WriteServiceXml(writer, aService, aDevice);
Brh xml;
writer.TransferTo(xml);
aResourceWriter.WriteResourceBegin(xml.Bytes(), kOhNetMimeTypeXml);
aResourceWriter.WriteResource(xml.Ptr(), xml.Bytes());
aResourceWriter.WriteResourceEnd();
}
示例3: invocationWrapper
void DvProviderLinnCoUkCloud1C::DoSetAssociated(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
Brh AesKeyRsaEncrypted;
aInvocation.InvocationReadBinary("AesKeyRsaEncrypted", AesKeyRsaEncrypted);
Brh InitVectorRsaEncrypted;
aInvocation.InvocationReadBinary("InitVectorRsaEncrypted", InitVectorRsaEncrypted);
Brh TokenAesEncrypted;
aInvocation.InvocationReadBinary("TokenAesEncrypted", TokenAesEncrypted);
TBool Associated = aInvocation.InvocationReadBool("Associated");
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackSetAssociated != NULL);
if (0 != iCallbackSetAssociated(iPtrSetAssociated, invocationC, invocationCPtr, (const char*)AesKeyRsaEncrypted.Ptr(), AesKeyRsaEncrypted.Bytes(), (const char*)InitVectorRsaEncrypted.Ptr(), InitVectorRsaEncrypted.Bytes(), (const char*)TokenAesEncrypted.Ptr(), TokenAesEncrypted.Bytes(), Associated)) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}
示例4: invocationWrapper
void DvProviderAvOpenhomeOrgCredentials1C::DoSet(IDviInvocation& aInvocation)
{
DvInvocationCPrivate invocationWrapper(aInvocation);
IDvInvocationC* invocationC;
void* invocationCPtr;
invocationWrapper.GetInvocationC(&invocationC, &invocationCPtr);
aInvocation.InvocationReadStart();
Brhz Id;
aInvocation.InvocationReadString("Id", Id);
Brhz UserName;
aInvocation.InvocationReadString("UserName", UserName);
Brh Password;
aInvocation.InvocationReadBinary("Password", Password);
aInvocation.InvocationReadEnd();
DviInvocation invocation(aInvocation);
ASSERT(iCallbackSet != NULL);
if (0 != iCallbackSet(iPtrSet, invocationC, invocationCPtr, (const char*)Id.Ptr(), (const char*)UserName.Ptr(), (const char*)Password.Ptr(), Password.Bytes())) {
invocation.Error(502, Brn("Action failed"));
return;
}
invocation.StartResponse();
invocation.EndResponse();
}