本文整理汇总了C++中epics::pvdata::Status::toString方法的典型用法代码示例。如果您正苦于以下问题:C++ Status::toString方法的具体用法?C++ Status::toString怎么用?C++ Status::toString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类epics::pvdata::Status
的用法示例。
在下文中一共展示了Status::toString方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: channelPutConnect
void ChannelPutRequesterImpl::channelPutConnect(const epics::pvData::Status& status,
ChannelPut::shared_pointer const & channelPut,
epics::pvData::PVStructure::shared_pointer const & pvStructure,
epics::pvData::BitSet::shared_pointer const & bitSet)
{
if (status.isSuccess()) {
// show warning
if (!status.isOK()) {
std::cerr << "[" << m_channelName << "] channel put create: " << status.toString() << std::endl;
}
// assign smart pointers
{
Lock lock(m_pointerMutex);
m_channelPut = channelPut;
m_pvStructure = pvStructure;
m_bitSet = bitSet;
}
// we always put all
m_bitSet->set(0);
// get immediately old value
channelPut->get();
} else {
std::cerr << "[" << m_channelName << "] failed to create channel put: " << status.toString() << std::endl;
}
}
示例2: putDone
void ChannelPutRequesterImpl::putDone(const epics::pvData::Status& status)
{
if (status.isSuccess()) {
// show warning
if (!status.isOK()) {
std::cerr << "[" << m_channelName << "] channel put: " << status.toString() << std::endl;
}
m_event->signal();
} else {
std::cerr << "[" << m_channelName << "] failed to get: " << status.toString() << std::endl;
}
}
示例3: getDone
void ChannelPutRequesterImpl::getDone(const epics::pvData::Status& status)
{
qDebug() << "ChannelPutRequesterImpl getDone";
if (status.isSuccess()) {
// show warning
if (!status.isOK()) {
std::cerr << "[" << m_channelName << "] channel get: " << status.toString() << std::endl;
}
// access smart pointers
Lock lock(m_pointerMutex);
{
PVField::shared_pointer value = m_pvStructure->getSubField("value");
}
m_event->signal();
} else {
std::cerr << "[" << m_channelName << "] failed to get: " << status.toString() << std::endl;
}
}
示例4: monitorConnect
void MonitorRequesterImpl::monitorConnect(const epics::pvData::Status& status, Monitor::shared_pointer const & monitor, StructureConstPtr const & /*structure*/)
{
qDebug() << "monitorConnect";
if (status.isSuccess()) {
Status startStatus = monitor->start();
// show error
if (!startStatus.isSuccess()) {
std::cerr << "[" << m_channelName << "] channel monitor start: " << startStatus.toString() << std::endl;
}
} else {
std::cerr << "monitorConnect(" << status.toString() << ")" << std::endl;
}
}
示例5: channelCreated
void ChannelRequesterImpl::channelCreated(const epics::pvData::Status& status, Channel::shared_pointer const & channel)
{
qDebug() << "ChannelRequesterImpl channelCreated";
if (status.isSuccess()) {
// show warning
if (!status.isOK()) {
std::cout << "[" << channel->getChannelName() << "] channel create: " << status.toString() << std::endl;
}
} else {
std::cout << "[" << channel->getChannelName() << "] failed to create a channel: " << status.toString() << std::endl;
}
}