Logo Search packages:      
Sourcecode: sam2p version File versions

GenBuffer Class Reference

#include <gensi.hpp>

Inheritance diagram for GenBuffer:

SimBuffer::Appendable SimBuffer::Flat SimBuffer::Linked Image::Sampled SimBuffer::B SimBuffer::Fixed SimBuffer::Static SimBuffer::B

List of all members.


Detailed Description

A very generic, abstract char (pure 8-bit octet) buffer class. This class doesn't have any attributes.

Definition at line 23 of file gensi.hpp.


Public Types

typedef void(* block_char_t )(char c, void *data)
typedef void(* block_sub_t )(char const *beg, slen_t len, void *data)

Public Member Functions

int cmp (char const *s2) const
virtual int cmp (char const *s2, slen_t len) const
virtual int cmp (GenBuffer const &s2) const
virtual slen_t copyRange (char *to, slen_t cfrom, slen_t clen) const
void each_char (block_char_t block, void *data) const
virtual void each_sub (block_sub_t block, void *data) const =0
virtual void first_sub (Sub &sub) const =0
virtual slen_t getLength () const =0
bool isEmpty () const
virtual void next_sub (Sub &sub) const =0
virtual operator void * () const
virtual bool operator! () const
bool toBool (bool &dst)
bool toCString (char *&dst)
bool toInteger (signed int &i)
bool toInteger (unsigned int &i)
bool toInteger (signed short &i)
bool toInteger (unsigned short &i)
bool toInteger (signed long &dst)
bool toInteger (unsigned long &dst)

Static Public Member Functions

static unsigned hexc2n (char c)
static int nocase_memcmp (char const *a, char const *s, slen_t slen)
static bool nocase_strbegins (char const *a, char const *with)
static int nocase_strcmp (char const *a, char const *b)
static bool parseBool (char const *s, slen_t slen)
static bool strbegins (char const *a, char const *with)
static void tolower_memcpy (char *dst, char const *s, slen_t slen)
static void toupper_memcpy (char *dst, char const *s, slen_t slen)

Static Protected Member Functions

static void iter_char_sub (char const *beg, slen_t len, void *data)

Friends

bool operator!= (const GenBuffer &s1, const char *s2)
bool operator!= (const char *s1, const GenBuffer &s2)
bool operator!= (const GenBuffer &s1, const GenBuffer &s2)
bool operator< (const GenBuffer &s1, const char *s2)
bool operator< (const char *s1, const GenBuffer &s2)
bool operator< (const GenBuffer &s1, const GenBuffer &s2)
bool operator<= (const GenBuffer &s1, const char *s2)
bool operator<= (const char *s1, const GenBuffer &s2)
bool operator<= (const GenBuffer &s1, const GenBuffer &s2)
bool operator== (const GenBuffer &s1, const char *s2)
bool operator== (const char *s1, const GenBuffer &s2)
bool operator== (const GenBuffer &s1, const GenBuffer &s2)
bool operator> (const GenBuffer &s1, const char *s2)
bool operator> (const char *s1, const GenBuffer &s2)
bool operator> (const GenBuffer &s1, const GenBuffer &s2)
bool operator>= (const GenBuffer &s1, const char *s2)
bool operator>= (const char *s1, const GenBuffer &s2)
bool operator>= (const GenBuffer &s1, const GenBuffer &s2)

Classes

class  Readable
struct  Sub
struct  SubW
class  Writable

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

Generated by  Doxygen 1.6.0   Back to index