DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
dabc::sizestream Class Reference

special class only to define how many data will be written to the stream More...

#include <dabc/Record.h>

Inheritance diagram for dabc::sizestream:
dabc::iostream

Public Member Functions

virtual bool is_real () const
 
virtual uint64_t maxstoresize () const
 return maximum size of data which can be stored in the stream More...
 
virtual bool read (void *tgt, uint64_t len)
 
virtual bool shift (uint64_t len)
 
virtual uint64_t size () const
 return number of bytes, written or read from the stream More...
 
 sizestream ()
 
virtual bool write (const void *src, uint64_t len)
 
virtual ~sizestream ()
 
- Public Member Functions inherited from dabc::iostream
bool is_input () const
 
bool is_output () const
 
bool read_double (double &v)
 
bool read_int32 (int32_t &v)
 
bool read_int64 (int64_t &v)
 
bool read_str (std::string &str)
 Restore string from the stream. More...
 
bool read_uint32 (uint32_t &v)
 
bool read_uint64 (uint64_t &v)
 
bool skip_object ()
 Insted of reading object we read size and shift on that size Only can be done where size stored as 32-bit integer in the current position and contains number of 64-bit stored values, including size itself. More...
 
bool verify_size (uint64_t pos, uint64_t sz)
 
bool write_double (double v)
 
bool write_int32 (int32_t v)
 
bool write_int64 (int64_t v)
 
bool write_str (const std::string &str)
 Store string in the stream. More...
 
bool write_uint32 (uint32_t v)
 
bool write_uint64 (uint64_t v)
 
virtual ~iostream ()
 

Protected Attributes

uint64_t fLength
 
- Protected Attributes inherited from dabc::iostream
bool fInput
 

Additional Inherited Members

- Static Public Member Functions inherited from dabc::iostream
static uint64_t str_storesize (const std::string &str)
 Returns bytes count, required to store string. More...
 
- Protected Member Functions inherited from dabc::iostream
 iostream ()
 
 iostream (bool isinp)
 
virtual char * tmpbuf () const
 return temporary buffer More...
 
virtual uint64_t tmpbuf_size () const
 return number of bytes which are directly available in temporary buffer More...
 

Detailed Description

special class only to define how many data will be written to the stream

Definition at line 102 of file Record.h.

Constructor & Destructor Documentation

◆ sizestream()

dabc::sizestream::sizestream ( )
inline

Definition at line 108 of file Record.h.

◆ ~sizestream()

virtual dabc::sizestream::~sizestream ( )
inlinevirtual

Definition at line 114 of file Record.h.

Member Function Documentation

◆ size()

virtual uint64_t dabc::sizestream::size ( ) const
inlinevirtual

return number of bytes, written or read from the stream

Reimplemented from dabc::iostream.

Definition at line 116 of file Record.h.

◆ maxstoresize()

virtual uint64_t dabc::sizestream::maxstoresize ( ) const
inlinevirtual

return maximum size of data which can be stored in the stream

Reimplemented from dabc::iostream.

Definition at line 117 of file Record.h.

◆ is_real()

virtual bool dabc::sizestream::is_real ( ) const
inlinevirtual

Reimplemented from dabc::iostream.

Definition at line 119 of file Record.h.

◆ shift()

virtual bool dabc::sizestream::shift ( uint64_t  len)
inlinevirtual

Reimplemented from dabc::iostream.

Definition at line 121 of file Record.h.

◆ write()

virtual bool dabc::sizestream::write ( const void *  src,
uint64_t  len 
)
inlinevirtual

Reimplemented from dabc::iostream.

Definition at line 123 of file Record.h.

◆ read()

virtual bool dabc::sizestream::read ( void *  tgt,
uint64_t  len 
)
inlinevirtual

Reimplemented from dabc::iostream.

Definition at line 125 of file Record.h.

Field Documentation

◆ fLength

uint64_t dabc::sizestream::fLength
protected

Definition at line 104 of file Record.h.


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