|
2
|
1 /** |
|
|
2 * parser.hpp (2007-05-13) |
|
|
3 * |
|
|
4 * -- CABAL -- irc commands parser header |
|
|
5 * |
|
|
6 * Copyright (c) 2007-2008 Vlad Glagolev <enqlave@gmail.com> |
|
|
7 * All rights reserved. |
|
|
8 * |
|
|
9 * Permission to use, copy, modify, and distribute this software for any |
|
|
10 * purpose with or without fee is hereby granted, provided that the above |
|
|
11 * copyright notice and this permission notice appear in all copies. |
|
|
12 * |
|
|
13 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
|
|
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
|
|
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
|
|
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
|
|
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
|
|
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
|
|
19 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
|
20 */ |
|
|
21 |
|
|
22 #ifndef _PARSER_HPP_ |
|
|
23 #define _PARSER_HPP_ |
|
|
24 |
|
|
25 #include "core.hpp" |
|
|
26 |
|
|
27 class Parser |
|
|
28 { |
|
|
29 public: |
|
|
30 Parser(Connection *, string); |
|
|
31 |
|
|
32 void Parse(Connection *); |
|
|
33 |
|
|
34 string alien; |
|
|
35 string alienID; |
|
|
36 string alienAction; |
|
|
37 string alienLocation; |
|
|
38 string alienCommand; |
|
|
39 string alienMessage; |
|
|
40 }; |
|
|
41 |
|
|
42 #endif // _PARSER_HPP_ |