Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ecl::devices::CharBuffer Class Reference

Simple char string buffer class for use internally by the devices. More...

#include <character_buffer.hpp>

Public Member Functions

long append (const char &c)
long append (const char *s, unsigned long n)
char * c_ptr ()
 CharBuffer ()
void clear ()
bool full () const
unsigned int remaining ()
unsigned int size () const
virtual ~CharBuffer ()

Static Public Attributes

static const unsigned int buffer_size = 4096

Private Attributes

char contents [buffer_size]
unsigned int fill_point_marker

Detailed Description

Simple char string buffer class for use internally by the devices.

This accommodates buffers which always reserve at least one extra byte for the end of string character.

See also

Definition at line 39 of file character_buffer.hpp.

Constructor & Destructor Documentation

ecl::devices::CharBuffer::CharBuffer ( )

Definition at line 49 of file character_buffer.hpp.

virtual ecl::devices::CharBuffer::~CharBuffer ( )

Definition at line 50 of file character_buffer.hpp.

Member Function Documentation

long ecl::devices::CharBuffer::append ( const char &  c)

Definition at line 34 of file character_buffer.cpp.

long ecl::devices::CharBuffer::append ( const char *  s,
unsigned long  n 

Definition at line 45 of file character_buffer.cpp.

char* ecl::devices::CharBuffer::c_ptr ( )

Definition at line 58 of file character_buffer.hpp.

void ecl::devices::CharBuffer::clear ( )

Definition at line 59 of file character_buffer.cpp.

bool ecl::devices::CharBuffer::full ( ) const

Definition at line 26 of file character_buffer.cpp.

unsigned int ecl::devices::CharBuffer::remaining ( )

Definition at line 52 of file character_buffer.hpp.

unsigned int ecl::devices::CharBuffer::size ( ) const

Definition at line 53 of file character_buffer.hpp.

Member Data Documentation

const unsigned int ecl::devices::CharBuffer::buffer_size = 4096

Definition at line 44 of file character_buffer.hpp.

char ecl::devices::CharBuffer::contents[buffer_size]

Definition at line 65 of file character_buffer.hpp.

unsigned int ecl::devices::CharBuffer::fill_point_marker

Definition at line 64 of file character_buffer.hpp.

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

Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:46