Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ecl::devices::CharStringBuffer 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)
 
const char * c_str ()
 
 CharStringBuffer ()
 
void clear ()
 
bool full () const
 
unsigned int remaining ()
 
virtual ~CharStringBuffer ()
 

Static Public Attributes

static const unsigned int buffer_size = 4095
 

Private Attributes

char contents [buffer_size+1]
 
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
OConsole.

Definition at line 79 of file character_buffer.hpp.

Constructor & Destructor Documentation

ecl::devices::CharStringBuffer::CharStringBuffer ( )
inline

Definition at line 89 of file character_buffer.hpp.

virtual ecl::devices::CharStringBuffer::~CharStringBuffer ( )
inlinevirtual

Definition at line 93 of file character_buffer.hpp.

Member Function Documentation

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

Definition at line 76 of file character_buffer.cpp.

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

Definition at line 87 of file character_buffer.cpp.

const char * ecl::devices::CharStringBuffer::c_str ( )

Definition at line 105 of file character_buffer.cpp.

void ecl::devices::CharStringBuffer::clear ( )

Definition at line 101 of file character_buffer.cpp.

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

Definition at line 68 of file character_buffer.cpp.

unsigned int ecl::devices::CharStringBuffer::remaining ( )
inline

Definition at line 95 of file character_buffer.hpp.

Member Data Documentation

const unsigned int ecl::devices::CharStringBuffer::buffer_size = 4095
static

Definition at line 84 of file character_buffer.hpp.

char ecl::devices::CharStringBuffer::contents[buffer_size+1]
private

Definition at line 107 of file character_buffer.hpp.

unsigned int ecl::devices::CharStringBuffer::fill_point_marker
private

Definition at line 106 of file character_buffer.hpp.


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


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