11 #ifndef TSLCLUSTERIMPL_HH 12 #define TSLCLUSTERIMPL_HH 58 if (m_tslChain.empty())
63 m_tslChain.push_back(device);
72 if (m_tslChain.size() > index)
74 m_tslChain.erase(m_tslChain.begin() + index);
84 std::string name(m_tslChain[0].tslName);
85 return name.empty() ? m_tslChain[0].name : name;
92 for (
size_t i = 0; i < m_tslChain.size(); ++i)
95 std::cout <<
"--Dev: [" << device.
name <<
"] IP[" << device.
ip <<
"]\n";
103 std::vector<OnlineLoggerInfo>::iterator
begin() {
return m_tslChain.begin(); }
109 std::vector<OnlineLoggerInfo>::iterator
end() {
return m_tslChain.end(); }
114 cluster.numDevices = m_tslChain.size();
115 cluster.loggerArray = m_tslChain.empty() ? nullptr : &m_tslChain[0];
125 std::vector<OnlineLoggerInfo> m_tslChain;
131 #endif // TSLCLUSTERIMPL_HH Configuration tasks.
Definition: TSLClusterImpl.hh:32
void deleteDevice(size_t index)
Definition: TSLClusterImpl.hh:70
Struct with information about a logger found in LAN/WLAN used to notify IBPNGClientListener about det...
Definition: BPNGDefines.h:656
Definition: TSLClusterImpl.hh:23
TSLClusterImpl()
Constructor.
Definition: TSLClusterImpl.hh:39
make Firmware update
Definition: TSLClusterImpl.hh:34
Defines for Telemotive Client Library.
Create bug report.
Definition: TSLClusterImpl.hh:33
Representation of a chain of Telemotive devices combined via Telemotive System Link (TSL) ...
Definition: BPNGDefines.h:686
void addDevice(OnlineLoggerInfo device)
Definition: TSLClusterImpl.hh:56
size_t getTSLSize()
get size of TSL chain
Definition: TSLClusterImpl.hh:120
Conversion tasks.
Definition: TSLClusterImpl.hh:31
TSLClusterImpl(OnlineLoggerInfo firstDevice)
Definition: TSLClusterImpl.hh:47
Download tasks.
Definition: TSLClusterImpl.hh:30
std::string getTSLName()
Definition: TSLClusterImpl.hh:82
int32_t tslNetworkId
id of tsl network, -1 = no TSL, all devices with same tslNetworkId belong to the same TSL ...
Definition: BPNGDefines.h:669
ConnectionType
A enumaration of types of which task the connection will be used for.
Definition: TSLClusterImpl.hh:28
const char * ip
the logger's ip address, obligatory if OnlineLoggerInfo is used with IBPNGClient::setDevice() ...
Definition: BPNGDefines.h:658
const char * name
the logger's name
Definition: BPNGDefines.h:659
void print()
Stream the TSLCluster to cout.
Definition: TSLClusterImpl.hh:90
std::vector< OnlineLoggerInfo >::iterator end()
Definition: TSLClusterImpl.hh:109
std::vector< OnlineLoggerInfo >::iterator begin()
Definition: TSLClusterImpl.hh:103