Skip to content
Snippets Groups Projects
Commit 0cab7f22 authored by benbergk's avatar benbergk
Browse files

added test url variable to LocalReader

parent c1a883ba
Branches
No related tags found
1 merge request!2WIP:Crawler parser 2 merge into duplicate url-crawler
......@@ -43,4 +43,9 @@ bool LocalReader::checkStatus ( )
void LocalReader::closeReader ( )
{
close(fd);
}
void LocalReader::setUrl(ParsedUrl url_in)
{
test_url = url_in;
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ class LocalReader : public StreamReader
{
public:
LocalReader ( string url_in ) : fileName( url_in )
LocalReader ( string filename ) : fileName( filename), test_url(filename)
{ }
bool request ( );
......@@ -25,8 +25,11 @@ public:
void closeReader ( );
void setUrl(ParsedUrl url);
private:
string fileName;
ParsedUrl test_url;
int fd;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment