Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eecs398-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vcday
eecs398-search
Commits
0cab7f22
Commit
0cab7f22
authored
7 years ago
by
benbergk
Browse files
Options
Downloads
Patches
Plain Diff
added test url variable to LocalReader
parent
c1a883ba
Branches
Branches containing commit
No related tags found
1 merge request
!2
WIP:Crawler parser 2 merge into duplicate url-crawler
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crawler/Readers/LocalReader.cpp
+5
-0
5 additions, 0 deletions
crawler/Readers/LocalReader.cpp
crawler/Readers/LocalReader.h
+4
-1
4 additions, 1 deletion
crawler/Readers/LocalReader.h
with
9 additions
and
1 deletion
crawler/Readers/LocalReader.cpp
+
5
−
0
View file @
0cab7f22
...
...
@@ -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
This diff is collapsed.
Click to expand it.
crawler/Readers/LocalReader.h
+
4
−
1
View file @
0cab7f22
...
...
@@ -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
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment