本文整理汇总了C++中CStdString::Buffer方法的典型用法代码示例。如果您正苦于以下问题:C++ CStdString::Buffer方法的具体用法?C++ CStdString::Buffer怎么用?C++ CStdString::Buffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CStdString
的用法示例。
在下文中一共展示了CStdString::Buffer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SignalStatus
PVR_ERROR PVRClientMythTV::SignalStatus(PVR_SIGNAL_STATUS &signalStatus)
{
if (g_bExtraDebug)
XBMC->Log(LOG_DEBUG, "%s", __FUNCTION__);
MythSignal signal;
if (m_pEventHandler)
{
signal = m_pEventHandler->GetSignal();
}
signalStatus.dAudioBitrate = 0;
signalStatus.dDolbyBitrate = 0;
signalStatus.dVideoBitrate = 0;
signalStatus.iBER = signal.BER();
signalStatus.iSignal = signal.Signal();
signalStatus.iSNR = signal.SNR();
signalStatus.iUNC = signal.UNC();
CStdString ID;
ID.Format("Myth Recorder %i", signal.ID());
CStdString strAdapterStatus = signal.AdapterStatus();
strcpy(signalStatus.strAdapterName, ID.Buffer());
strcpy(signalStatus.strAdapterStatus, strAdapterStatus.Buffer());
if (g_bExtraDebug)
XBMC->Log(LOG_DEBUG, "%s - Done", __FUNCTION__);
return PVR_ERROR_NO_ERROR;
}
示例2: FindProgram
bool MythDatabase::FindProgram(const time_t starttime,const int channelid,CStdString &title,MythProgram* pprogram)
{
m_database_t->Lock();
bool retval=CMYTH->MysqlGetProgFinderTimeTitleChan(*m_database_t,pprogram,title.Buffer(),starttime,channelid)>0;
m_database_t->Unlock();
return retval;
}
示例3: UpdateSchedules
bool MythConnection::UpdateSchedules(int id)
{
CStdString cmd;
cmd.Format("RESCHEDULE_RECORDINGS %i", id);
int retval = 0;
CMYTH_CONN_CALL(retval, retval < 0, cmyth_schedule_recording(*m_conn_t, cmd.Buffer()));
return retval >= 0;
}