Migrates OcSituation and ServiceManagement to generated rtiddsgen API
Converts accessor calls to plain member access in osc, oss and obd services.
This commit is contained in:
30 files changed
+1000
-1007
No files matched your search
+22
-22
@@ -98,11 +98,11 @@ bool DataTopicTests::write(const ServiceManagement::ServiceInformation &data)
|
||||
{
|
||||
INFO_LOG(m_logger) << "Publish topic ServiceInformation ";
|
||||
|
||||
DEBUG_LOG(m_logger) << "Id: " << data.id()
|
||||
<< ", Name: " << data.name()
|
||||
<< ", State: " << data.state()
|
||||
<< ", Timestamp: " << data.timestamp()
|
||||
<< ", ErrorString: " << data.errorString()
|
||||
DEBUG_LOG(m_logger) << "Id: " << data.id
|
||||
<< ", Name: " << data.name
|
||||
<< ", State: " << data.state
|
||||
<< ", Timestamp: " << data.timestamp
|
||||
<< ", ErrorString: " << data.errorString
|
||||
;
|
||||
|
||||
return m_dtsServiceInformation->write(data);
|
||||
@@ -116,7 +116,7 @@ bool DataTopicTests::write(const ServiceManagement::GroupInformation &data)
|
||||
{
|
||||
QString services;
|
||||
|
||||
for(int serviceId : data.services())
|
||||
for(int serviceId : data.services)
|
||||
{
|
||||
services.append(QString::number(serviceId));
|
||||
services.append(QLatin1Char(','));
|
||||
@@ -125,12 +125,12 @@ bool DataTopicTests::write(const ServiceManagement::GroupInformation &data)
|
||||
if(services.endsWith(QLatin1Char(',')))
|
||||
services.chop(1);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Type: " << data.type()
|
||||
<< ", Domain: " << data.domainId()
|
||||
<< ", Partition: " << data.exercisePartitionId()
|
||||
<< ", Partition: " << data.replayPartitionId()
|
||||
DEBUG_LOG(m_logger) << "Type: " << data.type
|
||||
<< ", Domain: " << data.domainId
|
||||
<< ", Partition: " << data.exercisePartitionId
|
||||
<< ", Partition: " << data.replayPartitionId
|
||||
<< ", Services: " << services
|
||||
<< ", Timestamp: " << data.timestamp();
|
||||
<< ", Timestamp: " << data.timestamp;
|
||||
}
|
||||
|
||||
return m_dtsGroupInformation->write(data);
|
||||
@@ -151,11 +151,11 @@ void DataTopicTests::processData(const ServiceManagement::ServiceInformation &in
|
||||
Q_UNUSED(modType);
|
||||
INFO_LOG(m_logger) << "process Lts_ServiceInformation";
|
||||
|
||||
DEBUG_LOG(m_logger) << "Id: " << instance.id();
|
||||
DEBUG_LOG(m_logger) << "Name: " << instance.name();
|
||||
DEBUG_LOG(m_logger) << "State: " << instance.state();
|
||||
DEBUG_LOG(m_logger) << "Timestamp: " << instance.timestamp();
|
||||
DEBUG_LOG(m_logger) << "ErrorString: " << instance.errorString();
|
||||
DEBUG_LOG(m_logger) << "Id: " << instance.id;
|
||||
DEBUG_LOG(m_logger) << "Name: " << instance.name;
|
||||
DEBUG_LOG(m_logger) << "State: " << instance.state;
|
||||
DEBUG_LOG(m_logger) << "Timestamp: " << instance.timestamp;
|
||||
DEBUG_LOG(m_logger) << "ErrorString: " << instance.errorString;
|
||||
|
||||
m_receivedServiceInformationData = instance;
|
||||
|
||||
@@ -173,7 +173,7 @@ void DataTopicTests::processData(const ServiceManagement::GroupInformation &inst
|
||||
{
|
||||
QString services;
|
||||
|
||||
for(int serviceId : instance.services())
|
||||
for(int serviceId : instance.services)
|
||||
{
|
||||
services.append(QString::number(serviceId));
|
||||
services.append(QLatin1Char(','));
|
||||
@@ -182,12 +182,12 @@ void DataTopicTests::processData(const ServiceManagement::GroupInformation &inst
|
||||
if(services.endsWith(QLatin1Char(',')))
|
||||
services.chop(1);
|
||||
|
||||
DEBUG_LOG(m_logger) << "Type: " << instance.type();
|
||||
DEBUG_LOG(m_logger) << "Domain: " << instance.domainId();
|
||||
DEBUG_LOG(m_logger) << "Partition: " << instance.exercisePartitionId();
|
||||
DEBUG_LOG(m_logger) << "Replay Partition: " << instance.replayPartitionId();
|
||||
DEBUG_LOG(m_logger) << "Type: " << instance.type;
|
||||
DEBUG_LOG(m_logger) << "Domain: " << instance.domainId;
|
||||
DEBUG_LOG(m_logger) << "Partition: " << instance.exercisePartitionId;
|
||||
DEBUG_LOG(m_logger) << "Replay Partition: " << instance.replayPartitionId;
|
||||
DEBUG_LOG(m_logger) << "Services: " << services;
|
||||
DEBUG_LOG(m_logger) << "Timestamp: " << instance.timestamp();
|
||||
DEBUG_LOG(m_logger) << "Timestamp: " << instance.timestamp;
|
||||
}
|
||||
|
||||
m_receivedGroupInformationData = instance;
|
||||
|
||||
Reference in new issue
Block a user