23 #ifndef LOG4CPLUS_HELPERS_SOCKET_BUFFER_HEADER_ 24 #define LOG4CPLUS_HELPERS_SOCKET_BUFFER_HEADER_ 26 #include "dcmtk/oflog/config.h" 46 char *getBuffer()
const {
return buffer; }
47 size_t getMaxSize()
const {
return maxsize; }
48 size_t getSize()
const {
return size; }
49 void setSize(
size_t s) { size = s; }
50 size_t getPos()
const {
return pos; }
52 unsigned char readByte();
53 unsigned short readShort();
54 unsigned int readInt();
55 tstring readString(
unsigned char sizeOfChar);
57 void appendByte(
unsigned char val);
58 void appendShort(
unsigned short val);
59 void appendInt(
unsigned int val);
60 void appendSize_t(
size_t val);
61 void appendString(
const tstring& str);
78 #endif // LOG4CPLUS_HELPERS_SOCKET_HEADER_
This class used to simplify the use of the LogLog class.
a simple string class that implements a subset of std::string.