|
RTC Toolkit 6.0.0
|
Implements basic features for a simple shared memory subscriber program. More...
#include <rtctk/standaloneTools/shmSubscriber.hpp>
Public Member Functions | |
| ShmSubscriber ()=default | |
| ~ShmSubscriber () override=default | |
| ShmSubscriber (const ShmSubscriber &rhs)=delete | |
| ShmSubscriber & | operator= (const ShmSubscriber &rhs)=delete |
| ShmSubscriber (ShmSubscriber &&rhs) noexcept=default | |
| ShmSubscriber & | operator= (ShmSubscriber &&rhs) noexcept=default |
Public Member Functions inherited from rtctk::standaloneTools::ShmSubscriberBase | |
| ShmSubscriberBase ()=default | |
| ShmSubscriberBase (const ShmSubscriberBase &rhs)=delete | |
| ShmSubscriberBase & | operator= (const ShmSubscriberBase &rhs)=delete |
| ShmSubscriberBase (ShmSubscriberBase &&rhs)=default | |
| ShmSubscriberBase & | operator= (ShmSubscriberBase &&rhs)=default |
| virtual | ~ShmSubscriberBase ()=default |
| int | Run (int argc, char *argv[]) |
| Executes the shared memory subscriber program. | |
Protected Member Functions | |
| virtual void | PrintSample (const Topic &sample) |
| Prints a hex dump of the sample. | |
Protected Member Functions inherited from rtctk::standaloneTools::ShmSubscriberBase | |
| const std::string & | GetQueueName () const |
| const std::string & | GetFilename () const |
| const int64_t | GetSampleNumber () const |
| const int64_t | PrintWihtLongFormat () const |
Implements basic features for a simple shared memory subscriber program.
This class should be used to quickly instantiate a shared memory subscriber program that allows basic monitoring of the shared memory and dumping of the raw data to file. This can be useful for testing and debugging.
|
default |
|
overridedefault |
|
delete |
|
defaultnoexcept |
|
delete |
|
defaultnoexcept |
|
inlineprotectedvirtual |
Prints a hex dump of the sample.
If the –print-long option was used on the command line then the whole buffer is printed, otherwise only the first 64 bytes is printed.
| [in] | sample | The data for the sample read from shared memory. |
To print better human readable information this method needs to be overridden.