6 #ifndef OPENDDS_DCPS_DATACOLLECTOR_T_H 7 #define OPENDDS_DCPS_DATACOLLECTOR_T_H 9 #include <ace/config-macros.h> 10 #ifndef ACE_LACKS_PRAGMA_ONCE 31 template<
typename DatumType>
66 void collect(
const DatumType& datum);
69 unsigned int size()
const;
71 #ifndef OPENDDS_SAFETY_PROFILE 77 std::ostream&
insert(std::ostream& str)
const;
78 #endif //OPENDDS_SAFETY_PROFILE 98 #ifndef OPENDDS_SAFETY_PROFILE 100 template<
typename DatumType>
104 #endif //OPENDDS_SAFETY_PROFILE 112 #if defined (__ACE_INLINE__) 116 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) 120 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA) 121 #pragma implementation ("DataCollector_T.cpp")
unsigned int size() const
Amount of data actually stored.
const LogLevel::Value value
OPENDDS_VECTOR(DatumType) buffer_
The collected data goes here.
DataCollector< DatumType > & operator<<(DatumType datum)
OnFull onFull_
Selector for behavior when buffer fills.
unsigned int writeAt_
Where to write the next datum collected.
void collect(const DatumType &datum)
Implement data collection.
OnFull
Selectors for behavior when buffer fills.
virtual ~DataCollector()
Allow the class to be extended.
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
unsigned int bound_
Total or initial capacity of buffer.
Collect data in a buffer.
DataCollector(unsigned int bound=0, OnFull onFull=KeepOldest)
The Internal API and Implementation of OpenDDS.
std::ostream & insert(std::ostream &str) const
Implement insertion of collected data onto an ostream.