rili::stream::view::Base Class Referenceabstract
Inheritance diagram for rili::stream::view::Base:
[legend]

Public Member Functions

virtual char const * data () const =0
 
virtual std::size_t size () const =0
 
bool empty () const
 
char operator[] (std::size_t position) const
 

Detailed Description

Note
stream converters may depend on that, processed data ends with 0x0 - even if it is not part of 'real data' at least data()[size()] should point to 0x0 to not allow access to not aquired memory by functions like std::strtol or std::strtod

Member Function Documentation

virtual char const* rili::stream::view::Base::data ( ) const
pure virtual

data give access to begin of continous memory space with size equal to size() + 1(for leading 0x0 val) containing already aquired data.

Returns
pointer to memory space

Implemented in rili::stream::view::Default.

bool rili::stream::view::Base::empty ( ) const
inline

empty check if any already avaliable data

Returns
char rili::stream::view::Base::operator[] ( std::size_t  position) const
inline

operator [] give access to data element

Parameters
positionin data
Returns
element from data
virtual std::size_t rili::stream::view::Base::size ( ) const
pure virtual

size used to check how many bytes is in aquired data

Returns
size of data

Implemented in rili::stream::view::Default.


The documentation for this class was generated from the following file:
  • rili/stream/View.hpp