Design Patterns
scanner.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef STRUCTURAL_FACADE_SCANNER_H_
7 #define STRUCTURAL_FACADE_SCANNER_H_
8 
9 #include "token.h"
10 
11 #include <sstream>
12 #include <vector>
13 
14 namespace structural
15 {
16 namespace facade
17 {
18 class Scanner
19 {
20  public:
21  explicit Scanner(std::istringstream&);
22  virtual ~Scanner();
23 
24  virtual std::vector<Token*> Scanner::Scan();
25 
26  private:
27  std::istringstream& input_stream_;
28 };
29 }
30 }
31 
32 #endif
33 
Definition: shape_interface.h:11
Scanner(std::istringstream &)
Definition: scanner.cc:15
virtual std::vector< Token * > Scanner::Scan()
virtual ~Scanner()
Definition: scanner.cc:17
Definition: scanner.h:18