source: trunk/gsdl/src/mgpp/text/mg.special.cpp@ 879

Last change on this file since 879 was 856, checked in by sjboddie, 24 years ago

Rodgers new C++ mg

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/**************************************************************************
2 *
3 * mg.special.cpp -- Special pass for mg_passes
4 * Copyright (C) 1994 Neil Sharman
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: mg.special.cpp 856 2000-01-14 02:26:25Z sjboddie $
21 *
22 **************************************************************************/
23
24#include "sysfuncs.h"
25
26#include "mg.h"
27#include "build.h"
28
29
30/*
31 $Log$
32 Revision 1.1 2000/01/14 02:26:10 sjboddie
33 Rodgers new C++ mg
34
35 Revision 1.1 1999/10/11 02:57:45 cs025
36 Base install of MG-PP
37
38 Revision 1.1 1999/08/10 21:18:03 sjboddie
39 renamed mg-1.3d directory mg
40
41 Revision 1.1 1998/11/17 09:34:51 rjmcnab
42 *** empty log message ***
43
44 * Revision 1.3 1994/10/20 03:56:53 tes
45 * I have rewritten the boolean query optimiser and abstracted out the
46 * components of the boolean query.
47 *
48 * Revision 1.2 1994/09/20 04:41:44 tes
49 * For version 1.1
50 *
51 */
52
53
54int init_special (const TagInfo &/*tagInfo*/, char * /*FileName*/) {
55 return COMPALLOK;
56}
57
58int process_special (const TagInfo &/*tagInfo*/, const TextElArray &doc) {
59 // print out the document
60 TextElArray::const_iterator here = doc.begin();
61 TextElArray::const_iterator end = doc.end();
62 while (here != end) {
63 if ((*here).elType == OpenTagE) {
64 cout << "** OpenTag \"" << (*here).tagName << "\"\tText \""
65 << (*here).text << "\"\n";
66 } else if ((*here).elType == CloseTagE) {
67 cout << "** CloseTag \"" << (*here).tagName << "\"\tText \""
68 << (*here).text << "\"\n";
69 } else {
70 cout << "** Text \"" << (*here).text << "\"\n";
71 }
72
73 here++;
74 }
75
76 return COMPALLOK;
77}
78
79int done_special (const TagInfo &/*tagInfo*/, char * /*FileName*/) {
80 return COMPALLOK;
81}
Note: See TracBrowser for help on using the repository browser.