System documentation of the GNU Image-Finding Tool

CXEVI18nTranslator.h
1 // -*- mode: c++ -*-
2 #ifndef _CXEVI18NTRANSLATOR
3 #define _CXEVI18NTRANSLATOR
4 /* -*- mode: c++ -*-
5  */
6 /*
7 
8 GIFT, a flexible content based image retrieval system.
9 Copyright (C) 1998, 1999, 2000, 2001, 2002, CUI University of Geneva
10 
11  Copyright (C) 2003, 2004 Bayreuth University
12  2005 Bamberg University
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17 
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 */
27 
28 #include "libMRML/include/uses-declarations.h"
29 #include <string>
30 #include "libMRML/include/CXMLElementVisitor.h"
31 #include "libMRML/include/CXEVI18nTranslator.h"
32 #include "libMRML/include/CI18nTranslator.h"
39 
40 protected:
42  string mLanguageCode;
45 public:
49  CXEVI18nTranslator(const CI18nTranslator& inTranslator,
50  string inLanguageCode);
52  virtual bool startVisit(CXMLElement& inVisited);
54  virtual void endVisit(CXMLElement& inVisited);
56  virtual bool startVisit(const CXMLElement& inVisited);
58  virtual void endVisit(const CXMLElement& inVisited);
59 };
60 #endif
This class is designed for visiting XML document trees.
Definition: CXMLElementVisitor.h:35
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
virtual void endVisit(CXMLElement &inVisited)
actually carrying out the visit
A visitor that visits XML elements in order to translate them.
Definition: CXEVI18nTranslator.h:38
virtual bool startVisit(CXMLElement &inVisited)
actually carrying out the visit
This class offers runtime translation of strings.
Definition: CI18nTranslator.h:38
const CI18nTranslator & mTranslator
the translator used for translating
Definition: CXEVI18nTranslator.h:44
string mLanguageCode
the language code used for translating
Definition: CXEVI18nTranslator.h:42
CXEVI18nTranslator(const CI18nTranslator &inTranslator, string inLanguageCode)
constructor.

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen