10#ifndef OKSSYSTEM_STRING_MEMORY_AREA
11#define OKSSYSTEM_STRING_MEMORY_AREA
34 typedef std::map<std::string, std::string>
str_map ;
String memory storage facility.
virtual char * string_area_write()=0
write pointer for the string area
virtual size_t string_area_size() const =0
size of the string area
size_t clear(offset_t offset)
const char * get_string(offset_t offset) const
std::vector< std::string > str_vector
virtual offset_t last_string() const =0
offset of the end of the last string
virtual void last_string(offset_t offset)=0
sets the offset of the end of last string
static const char STRING_SEPARATOR
character used to separate strings (i.e., to tokenize strings in vectors)
static const char MAP_ENTRY_SEPARATOR
character used to separate map entries
str_vector get_vector(offset_t offset) const
std::map< std::string, std::string > str_map
offset_t insert(offset_t offset, const char *str)
str_map get_map(offset_t offset) const
offset_t add(const char *str)
virtual const char * string_area_read() const =0
read pointer for the string area