Files
Sourcetrail/src/lib/data/parser/Parser.h
T
Eberhard Graether df888e4151 utility: added FilePath abstraction and rewrote data management to use it
The utility class FilePath wraps an instance of boost::filesystem::path. Using FilePath allows for easy comparision of
file paths on different platforms using absolute or relative paths. Whereever file paths are compared, this wrapper
should be used.
2015-03-09 01:51:32 +01:00

30 lines
553 B
C++

#ifndef PARSER_H
#define PARSER_H
#include <memory>
#include <string>
#include <vector>
#include "data/parser/ParserClient.h"
class FilePath;
class TextAccess;
class Parser
{
public:
Parser(ParserClient* client);
virtual ~Parser();
virtual void parseFiles(
const std::vector<FilePath>& filePaths,
const std::vector<std::string>& systemHeaderSearchPaths,
const std::vector<std::string>& headerSearchPaths) = 0;
virtual void parseFile(std::shared_ptr<TextAccess> textAccess) = 0;
protected:
ParserClient* m_client;
};
#endif // PARSER_H