template<typename Topic, class ConditionPolicy = ipcq::BoostConditionPolicy, class ShmTraits = ipcq::detail::BoostInterprocessTraits>
class rtctk::standaloneTools::ShmSubscriber< Topic, ConditionPolicy, ShmTraits >
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.
template<typename Topic , class ConditionPolicy = ipcq::BoostConditionPolicy, class ShmTraits = ipcq::detail::BoostInterprocessTraits>
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.
- Parameters
-
[in] | sample | The data for the sample read from shared memory. |
To print better human readable information this method needs to be overridden.