Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CL_BufferedStringBuffer Class Reference

#include <buffered_string_buffer.h>

List of all members.

Public Member Functions

 CL_BufferedStringBuffer ()
 Construction:.
 ~CL_BufferedStringBuffer ()
const char * get_data (int index)
 Operations:.
int get_length (int index)
int get_string_count ()
CL_BufferedString add_string (const char *str, int length)
CL_BufferedString get_string (int index)

Private Attributes

std::vector< StringDatastrings
CL_ByteArray buffer

Classes

struct  StringData
 Implementation:. More...


Detailed Description

clanCore="Text" header=core.h

Definition at line 44 of file buffered_string_buffer.h.


Constructor & Destructor Documentation

CL_BufferedStringBuffer::CL_BufferedStringBuffer  ) 
 

Construction:.

Definition at line 36 of file buffered_string_buffer.cpp.

CL_BufferedStringBuffer::~CL_BufferedStringBuffer  ) 
 

Definition at line 40 of file buffered_string_buffer.cpp.


Member Function Documentation

CL_BufferedString CL_BufferedStringBuffer::add_string const char *  str,
int  length
 

Definition at line 65 of file buffered_string_buffer.cpp.

References buffer, CL_ByteArray::get_capacity(), CL_ByteArray::get_data(), CL_ByteArray::get_size(), CL_BufferedStringBuffer::StringData::length, CL_BufferedStringBuffer::StringData::pos, CL_ByteArray::set_capacity(), CL_ByteArray::set_size(), and strings.

const char * CL_BufferedStringBuffer::get_data int  index  ) 
 

Operations:.

Definition at line 50 of file buffered_string_buffer.cpp.

Referenced by CL_BufferedString::c_str(), CL_BufferedString::data(), and CL_BufferedString::to_string().

int CL_BufferedStringBuffer::get_length int  index  ) 
 

Definition at line 55 of file buffered_string_buffer.cpp.

Referenced by CL_BufferedString::length(), and CL_BufferedString::to_string().

CL_BufferedString CL_BufferedStringBuffer::get_string int  index  ) 
 

Definition at line 91 of file buffered_string_buffer.cpp.

int CL_BufferedStringBuffer::get_string_count  ) 
 

Definition at line 60 of file buffered_string_buffer.cpp.

References strings.


Member Data Documentation

CL_ByteArray CL_BufferedStringBuffer::buffer [private]
 

Definition at line 77 of file buffered_string_buffer.h.

Referenced by add_string().

std::vector<StringData> CL_BufferedStringBuffer::strings [private]
 

Definition at line 75 of file buffered_string_buffer.h.

Referenced by add_string(), and get_string_count().


The documentation for this class was generated from the following files:
Generated on Sat Feb 19 22:51:17 2005 for npcore by  doxygen 1.4.1