|
|
/***************************************************************************
*
* File: Message.h
* Created: Tue Dec 14 1999
* (C) 1999 by David M. <captjay@superlink.net>
*
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MESSAGE_H
#define MESSAGE_H
#include <qobject.h>
#include <vector.h>
#include <qstring.h>
/**
* @author David M.
* @short Basic message parsing.
* The message class allows basic string parsing into its separate parameters.
*/
class Message : public QObject {
Q_OBJECT
public:
Message();
virtual ~Message();
Message(const char* rawMessage);
// Message(const QString& rawMessage);
virtual void setMessage(const char* rawMessage);
unsigned int count() const;
const QString& operator[](unsigned int index) const;
const QString operator() (unsigned int start,unsigned int length) const;
protected:
vector<QString>* _tokens;
unsigned int _count;
};
#endif
| Generated by: nightsky@centauri on Sat Jan 15 23:06:10 2000, using kdoc 2.0a30. |