libDwm-0.6.0
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. More...
 

Friends

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

Detailed Description

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

Encapsulates a single data log entry.

Member Function Documentation

◆ StreamedLength()

template<typename T >
size_t Dwm::DataLog< T >::Entry::StreamedLength ( ) const
inline

Returns the number of bytes that would be written if the Write() member were called.

Here is the call graph for this function:

Friends And Related Function 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: