vscan.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008 Kamil Dudka <xdudka00@stud.fit.vutbr.cz>
00003  *
00004  * This file is part of rob08
00005  *
00006  * rob08 is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * any later version.
00010  *
00011  * rob08 is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with rob08.  If not, see <http://www.gnu.org/licenses/>.
00018  */
00019 
00020 #ifndef VSCAN_H
00021 #define VSCAN_H
00022 
00023 #include "config.h"
00024 #include "scanner.h"
00025 
00026 #ifndef BUILDING_DOX
00027 #   include <iostream>
00028 #   include <string>
00029 #endif
00030 
00034 class IVScan: public IErrorSensitive {
00035     public:
00036         virtual ~IVScan() { }
00037         virtual bool readNext(std::string &token) = 0;
00038 };
00039 
00043 class VScanFactory {
00044     public:
00052         static IVScan* createVScan(std::istream &input, std::string fileName);
00053     private:
00054         VScanFactory();
00055 };
00056 
00057 #endif /* VSCAN_H */

Generated on Fri Jul 10 22:42:01 2009 for rob08 by  doxygen 1.5.4