Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ValueExplode Class Reference

Collaboration diagram for ValueExplode:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValueExplode (const QString &aCommand, const char aDelemiter= '&', const char a2Delemiter='=')
 constructor
virtual ~ValueExplode ()
 destructor
 operator const tvaluelist & ()
 assigen operator

Protected Member Functions

void splitit ()
 the real split routine
 ValueExplode ()
 constructor

Protected Attributes

tvaluelist m_LastParsed
 what was parsed last
QString mDelemiter
 the delemiter to use
QString m2Delemiter
 the inner delemiter
QString m_Command
 the content

Constructor & Destructor Documentation

ValueExplode::ValueExplode  )  [inline, protected]
 

constructor

Definition at line 45 of file opiemail.cpp.

ValueExplode::ValueExplode const QString aCommand,
const char  aDelemiter = '&',
const char  a2Delemiter = '='
 

constructor

Parameters:
aCommand the string to be splitted
aDelemiter which sign will be the delemiter character
a2Delemiter which sign will delemiter the key-value-pairs between other delemiters

Definition at line 67 of file opiemail.cpp.

References m2Delemiter, mDelemiter, and splitit().

ValueExplode::~ValueExplode  )  [virtual]
 

destructor

Definition at line 63 of file opiemail.cpp.


Member Function Documentation

ValueExplode::operator const tvaluelist &  )  [inline]
 

assigen operator

Returns:
a list of substrings

Definition at line 60 of file opiemail.cpp.

References m_LastParsed.

void ValueExplode::splitit  )  [protected]
 

the real split routine

Definition at line 75 of file opiemail.cpp.

References QValueList< T >::append(), QValueList< T >::clear(), QString::find(), QString::isEmpty(), QString::length(), m2Delemiter, m_Command, m_LastParsed, mDelemiter, QString::mid(), and pos.

Referenced by ValueExplode().


Member Data Documentation

QString ValueExplode::m2Delemiter [protected]
 

the inner delemiter

Definition at line 39 of file opiemail.cpp.

Referenced by splitit(), and ValueExplode().

QString ValueExplode::m_Command [protected]
 

the content

Definition at line 43 of file opiemail.cpp.

Referenced by splitit().

tvaluelist ValueExplode::m_LastParsed [protected]
 

what was parsed last

Definition at line 35 of file opiemail.cpp.

Referenced by operator const tvaluelist &(), and splitit().

QString ValueExplode::mDelemiter [protected]
 

the delemiter to use

Definition at line 37 of file opiemail.cpp.

Referenced by splitit(), and ValueExplode().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:54:51 2005 for OPIE by  doxygen 1.4.2