Added Lexer class to QRedis namespace.
This commit is contained in:
parent
1374064c0b
commit
744781a03d
|
|
@ -1,5 +1,7 @@
|
|||
#include "lexer.h"
|
||||
|
||||
using namespace QRedis;
|
||||
|
||||
Lexer::Lexer(QIODevice * device, QObject * parent)
|
||||
: QObject(parent), device(device), state(DoingNothing), crlf(0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
#ifndef LEXER_H
|
||||
#define LEXER_H
|
||||
#ifndef QREDIS_LEXER_H
|
||||
#define QREDIS_LEXER_H
|
||||
|
||||
#include <QIODevice>
|
||||
#include <QObject>
|
||||
|
||||
namespace QRedis
|
||||
{
|
||||
class Lexer : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
@ -43,5 +45,6 @@ class Lexer : public QObject
|
|||
int crlf;
|
||||
int length;
|
||||
};
|
||||
}
|
||||
|
||||
#endif // LEXER_H
|
||||
#endif // QREDIS_LEXER_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue