本文整理汇总了C++中RDGetSqlValue函数的典型用法代码示例。如果您正苦于以下问题:C++ RDGetSqlValue函数的具体用法?C++ RDGetSqlValue怎么用?C++ RDGetSqlValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RDGetSqlValue函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RDGetSqlValue
int RDCut::endPoint(bool calc) const
{
int n;
if(!calc) {
return RDGetSqlValue("CUTS","CUT_NAME",cut_name,"END_POINT",cut_db).
toInt();
}
if((n=RDGetSqlValue("CUTS","CUT_NAME",cut_name,"END_POINT",cut_db).
toInt())!=-1) {
return n;
}
return (int)length();
}
开发者ID:stgabmp,项目名称:Rivendell,代码行数:14,代码来源:rdcut.cpp
示例2: RDGetSqlValue
int RDCut::talkStartPoint(bool calc) const
{
int n;
if(!calc) {
return RDGetSqlValue("CUTS","CUT_NAME",cut_name,"TALK_START_POINT",cut_db).
toInt();
}
if((n=RDGetSqlValue("CUTS","CUT_NAME",cut_name,"TALK_START_POINT",cut_db).
toInt())!=-1) {
return n;
}
return 0;
}
开发者ID:LucaSoldi,项目名称:rivendell,代码行数:14,代码来源:rdcut.cpp
示例3: return
RDStation::BroadcastSecurityMode RDStation::broadcastSecurity() const
{
return (RDStation::BroadcastSecurityMode)RDGetSqlValue("STATIONS","NAME",
station_name,
"BROADCAST_SECURITY").
toUInt();
}
开发者ID:stgabmp,项目名称:Rivendell,代码行数:7,代码来源:rdstation.cpp
示例4: address
QHostAddress RDStation::address() const
{
QHostAddress addr;
addr.setAddress(RDGetSqlValue("STATIONS","NAME",station_name,"IPV4_ADDRESS").
toString());
return addr;
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:7,代码来源:rdstation.cpp
示例5: return
RDStation::AudioDriver RDStation::cardDriver(int cardnum) const
{
return (RDStation::AudioDriver)
RDGetSqlValue("STATIONS","NAME",station_name,
QString().sprintf("CARD%d_DRIVER",cardnum)).
toInt();
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:7,代码来源:rdstation.cpp
示例6: RDGetSqlValue
int RDStation::timeOffset()
{
if (!time_offset_valid){
time_offset = RDGetSqlValue("STATIONS","NAME",station_name,"TIME_OFFSET").toInt();
time_offset_valid = true;
}
return time_offset;
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:8,代码来源:rdstation.cpp
示例7: effectiveStart
int RDCut::effectiveStart() const
{
int n;
if((n=RDGetSqlValue("CUTS","CUT_NAME",cut_name,"START_POINT",cut_db).
toInt())!=-1) {
return n;
}
return 0;
}
开发者ID:stgabmp,项目名称:Rivendell,代码行数:10,代码来源:rdcut.cpp
示例8: effectiveEnd
int RDCut::effectiveEnd() const
{
int n;
if((n=RDGetSqlValue("CUTS","CUT_NAME",cut_name,"END_POINT",cut_db).
toInt())!=-1) {
return n;
}
return (int)length();
}
开发者ID:stgabmp,项目名称:Rivendell,代码行数:10,代码来源:rdcut.cpp
示例9: switch
QString RDStation::driverVersion(AudioDriver driver) const
{
switch(driver) {
case RDStation::None:
return QString();
case RDStation::Hpi:
return RDGetSqlValue("STATIONS","NAME",station_name,"HPI_VERSION").
toString();
case RDStation::Jack:
return RDGetSqlValue("STATIONS","NAME",station_name,"JACK_VERSION").
toString();
case RDStation::Alsa:
return RDGetSqlValue("STATIONS","NAME",station_name,"ALSA_VERSION").
toString();
}
return QString();
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:20,代码来源:rdstation.cpp
示例10: caeAddress
QHostAddress RDStation::caeAddress(RDConfig *config) const
{
QHostAddress addr;
addr.setAddress("127.0.0.1");
if(caeStation()!="localhost") {
if(caeStation()==RD_RDSELECT_LABEL) {
addr.setAddress(config->audioStoreCaeHostname());
}
else {
addr.setAddress(RDGetSqlValue("STATIONS","NAME",caeStation(),
"IPV4_ADDRESS").toString());
}
}
return addr;
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:17,代码来源:rdstation.cpp
示例11: RDBool
bool RDStation::scanned() const
{
return RDBool(RDGetSqlValue("STATIONS","NAME",station_name,"STATION_SCANNED").
toString());
}
开发者ID:radio-helsinki-graz,项目名称:rivendell,代码行数:5,代码来源:rdstation.cpp
注:本文中的RDGetSqlValue函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论