3 * wxbDataParser, class that receives and analyses data
5 * Nicolas Boichat, April 2004
9 Copyright (C) 2004 Kern Sibbald and John Walker
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 #include "wxbmainframe.h"
32 /* Creates a new wxbDataParser, and register it in wxbMainFrame */
33 wxbDataParser::wxbDataParser() {
34 wxbMainFrame::GetInstance()->Register(this);
37 /* Destroy a wxbDataParser, and unregister it in wxbMainFrame */
38 wxbDataParser::~wxbDataParser() {
39 wxbMainFrame::GetInstance()->Unregister(this);
42 /* Creates a new wxbDataTokenizer */
43 wxbDataTokenizer::wxbDataTokenizer(): wxbDataParser(), wxArrayString() {
47 /* Destroy a wxbDataTokenizer */
48 wxbDataTokenizer::~wxbDataTokenizer() {
53 * Receives director information, forwarded by wxbMainFrame.
55 void wxbDataTokenizer::Print(wxString str, int status) {
56 finished = ((status == CS_END) || (status == CS_DISCONNECTED));
63 /* Returns true if the last signal received was an end signal,
64 * indicating that no more data is available */
65 bool wxbDataTokenizer::hasFinished() {