Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

StringList Class Reference

list of strings. More...

#include <Strings.h>

Inheritance diagram for StringList::

DpList_String DpListItemInst List of all members.

Public Methods

 StringList ()
 ~StringList ()
void setPrefix (const String &prefix)
String getPrefix ()
void unsetPrefix ()
void operator= (const StringList &list_)
StringList& insert (const String &object)
StringList& append (const String &object)
void print (Os os)

Detailed Description

list of strings.

NAME: StringList - list of strings

DESCRIPTION:

Behaves like an ordinary list, see class "DpList" ("Type" is "String"), but it has an additional function "setPrefix" that allows the user to set a common string prefix that will be added to all future string objects inserted in the list (by "insert" or "append"). A function "unsetPrefix" turns the prefix off.


Constructor & Destructor Documentation

StringList::StringList ( ) [inline]
 

StringList::~StringList ( ) [inline]
 


Member Function Documentation

StringList & StringList::append ( const String & object )
 

String StringList::getPrefix ( )
 

StringList & StringList::insert ( const String & object )
 

void StringList::operator= ( const StringList & list_ ) [inline]
 

void StringList::print ( Os os )
 

void StringList::setPrefix ( const String & prefix )
 

void StringList::unsetPrefix ( )
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.