libDwm-0.9.45
Dwm::DataLog< T >::Entry Class Reference

Encapsulates a single data log entry. More...

#include <DwmDataLog.hh>

Public Member Functions

 Entry ()
 Constructor.
 
 Entry (const T &value)
 Construct from the given value.
 
const TimeValueTimestamp () const
 Returns the timestamp of the Entry.
 
const T & Value () const
 Returns the value of the entry.
 
std::istream & Read (std::istream &is)
 Reads the Entry from the given istream is.
 
std::ostream & Write (std::ostream &os) const
 Writes the Entry to the given ostream os.
 
size_t StreamedLength () const
 Returns the number of bytes that would be written if the Write() member were called.
 

Friends

std::ostream & operator<< (std::ostream &os, const Entry &entry)
 Prints the Entry to an ostream in human-readable form.
 

Detailed Description

template<typename T>
class Dwm::DataLog< T >::Entry

Encapsulates a single data log entry.

Friends And Related Symbol Documentation

◆ operator<<

template<typename T >
std::ostream & operator<< ( std::ostream & os,
const Entry & entry )
friend

Prints the Entry to an ostream in human-readable form.

Note that this depends on the paramaterized type having a similar operator.


The documentation for this class was generated from the following file: