Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조성현
/
graph-visualization
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
조성현
2017-06-20 09:06:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
327ed007517bbe498ff4a75f1295a96ced2452af
327ed007
1 parent
15bfb79f
중간저장2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
2 deletions
PaperGraph/curl_processor.cpp
PaperGraph/curl_processor.h
PaperGraph/main.cpp
PaperGraph/curl_processor.cpp
View file @
327ed00
...
...
@@ -2,11 +2,23 @@
#include "curl_processor.h"
//////////////////////////////////////////////////////////////////
// constructor, destructor
//////////////////////////////////////////////////////////////////
curl_processor
::
curl_processor
()
{
curl
=
curl_easy_init
();
if
(
!
curl
)
{
throw
std
::
exception
(
"failed to make curl object"
);
}
}
curl_processor
::~
curl_processor
()
{
curl_easy_cleanup
(
curl
);
}
//////////////////////////////////////////////////////////////////
// methods
//////////////////////////////////////////////////////////////////
...
...
PaperGraph/curl_processor.h
View file @
327ed00
...
...
@@ -15,7 +15,7 @@ public:
curl_processor
();
~
curl_processor
();
//method
//method
s
public:
};
...
...
PaperGraph/main.cpp
View file @
327ed00
...
...
@@ -4,6 +4,29 @@
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
1
)
{
CURL
*
curl
;
CURLcode
res
;
curl
=
curl_easy_init
();
if
(
curl
)
{
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
"http://dblp.uni-trier.de/rec/bib/conf/sbrn/WedemannCD06"
);
/* example.com is redirected, so we tell libcurl to follow redirection */
curl_easy_setopt
(
curl
,
CURLOPT_FOLLOWLOCATION
,
1L
);
/* Perform the request, res will get the return code */
res
=
curl_easy_perform
(
curl
);
/* Check for errors */
if
(
res
!=
CURLE_OK
)
fprintf
(
stderr
,
"curl_easy_perform() failed: %s
\n
"
,
curl_easy_strerror
(
res
));
/* always cleanup */
curl_easy_cleanup
(
curl
);
}
return
0
;
}
QApplication
app
(
argc
,
argv
);
MainWindow
m
;
...
...
Please
register
or
login
to post a comment