EBOOKTokenizer.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libe-book project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef EBOOKTOKENIZER_H_INCLUDED
11 #define EBOOKTOKENIZER_H_INCLUDED
12 
13 namespace libebook
14 {
15 
17 {
18 public:
19  int getId(const char *name) const;
20  int getQualifiedId(const char *name, const char *ns) const;
21 
22 protected:
24 
25 private:
32  virtual int queryId(const char *name) const = 0;
33 };
34 
35 }
36 
37 #endif // EBOOKTOKENIZERBASE_H_INCLUDED
38 
39 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: EBOOKTokenizer.h:16
int getId(const char *name) const
Definition: EBOOKTokenizer.cpp:19
~EBOOKTokenizer()
Definition: EBOOKTokenizer.cpp:15
const char * name
Definition: EBOOKHTMLToken.cpp:44
Definition: BBeBCollector.cpp:18
virtual int queryId(const char *name) const =0
Try to get an ID for token name.
int getQualifiedId(const char *name, const char *ns) const
Definition: EBOOKTokenizer.cpp:27

Generated for libe-book by doxygen 1.8.14