RTC Toolkit  0.1.0-alpha
Classes | Functions
rtctk::telSub Namespace Reference

Classes

class  BusinessLogic
 
struct  CorrelatedDataSamplesRef
 
class  Correlator
 
class  CorrelatorIf
 
struct  DataSampleRef
 
struct  DdsParams
 Parameter set to be passed to classes deriving from DdsSubscriberIf. More...
 
class  DdsReaderListener
 Listener class for different DDS events. More...
 
class  DdsSubscriber
 Implements DDS communication using RTI DDS. More...
 
class  DdsSubscriberIf
 Base class abstracting DDS communication code. More...
 
struct  MockBlender
 
struct  MockCorrelatorIf
 
struct  MockShmPublisherIf
 
struct  MockShmWriter
 
class  MockShmWriterRef
 
class  OperationalLogic
 
struct  OperationalLogicFactoryParams
 Set of all parameters needed when constructing the OperationalLogic object. More...
 
class  OperationalLogicIf
 
struct  OperationalParams
 
struct  ShmParams
 
class  ShmPublisher
 
class  ShmPublisherIf
 
class  TestDdsSubscriber
 
class  TestShmPublisher
 
struct  TestTopic
 

Functions

template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &stream, const std::vector< std::string > &data)
 
template<class UserTopicType , class DataBlender >
void Main (const rtctk::componentFramework::Args &args, DataBlender &&blender) noexcept
 
template<class UserTopicType , class DataBlender , class ShmWriter >
auto MakeShmPublisher (ShmWriter &&shm_writer, DataBlender &blender) -> std::unique_ptr< ShmPublisher< UserTopicType, DataBlender, ShmWriter >>
 
 TEST (TestDdsSubscriberLifecycle, TrivialInitialisation)
 
 TEST (TestDdsSubscriberLifecycle, InitialiseWithDomainId)
 
 TEST (TestDdsSubscriberLifecycle, InitialiseWithTopics)
 
 TEST_F (TestDdsSubscriber, TakeSamplesTimeout)
 
 TEST (TestShmPublisherLifecycle, Construction)
 
 TEST_F (TestShmPublisher, PublishSuccessfully)
 
 TEST_F (TestShmPublisher, PublishFailsIfBlenderFails)
 
 TEST_F (TestShmPublisher, PublishFailsIfWriteFails)
 
 TEST_F (TestShmPublisher, CloseClosesQueue)
 

Function Documentation

◆ operator<<()

template<typename CharT , typename Traits >
std::basic_ostream<CharT, Traits>& rtctk::telSub::operator<< ( std::basic_ostream< CharT, Traits > &  stream,
const std::vector< std::string > &  data 
)

A specialisation of the stream output operator to handle vectors of strings. This is used by methods such as BusinessLogic::GetParam.

Note
this needs to be in the same namespace as BusinessLogic, i.e. rtctk::telSub, otherwise the compiler is not able to match this function as the appropriate one to use.

◆ TEST() [1/4]

rtctk::telSub::TEST ( TestDdsSubscriberLifecycle  ,
InitialiseWithDomainId   
)

◆ TEST() [2/4]

rtctk::telSub::TEST ( TestDdsSubscriberLifecycle  ,
InitialiseWithTopics   
)

◆ TEST() [3/4]

rtctk::telSub::TEST ( TestDdsSubscriberLifecycle  ,
TrivialInitialisation   
)

◆ TEST() [4/4]

rtctk::telSub::TEST ( TestShmPublisherLifecycle  ,
Construction   
)

◆ TEST_F() [1/5]

rtctk::telSub::TEST_F ( TestDdsSubscriber  ,
TakeSamplesTimeout   
)

◆ TEST_F() [2/5]

rtctk::telSub::TEST_F ( TestShmPublisher  ,
CloseClosesQueue   
)

◆ TEST_F() [3/5]

rtctk::telSub::TEST_F ( TestShmPublisher  ,
PublishFailsIfBlenderFails   
)

◆ TEST_F() [4/5]

rtctk::telSub::TEST_F ( TestShmPublisher  ,
PublishFailsIfWriteFails   
)

◆ TEST_F() [5/5]

rtctk::telSub::TEST_F ( TestShmPublisher  ,
PublishSuccessfully   
)