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-19 22:05:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15bfb79f66c13fdffa393fa93e8900bfb4ed93dc
15bfb79f
1 parent
840fd6bb
중간버전 (미완)
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
28 deletions
PaperGraph/PaperGraph.vcxproj
PaperGraph/PaperGraph.vcxproj.filters
PaperGraph/curl_processor.cpp
PaperGraph/curl_processor.h
PaperGraph/main.cpp
PaperGraph/stdafx.h
PaperGraph/PaperGraph.vcxproj
View file @
15bfb79
...
...
@@ -149,6 +149,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="curl_processor.cpp" />
<ClCompile Include="EdgeItem.cpp" />
<ClCompile Include="GeneratedFiles\Debug\moc_GraphicsView.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
...
...
@@ -218,6 +219,7 @@
</CustomBuild>
</ItemGroup>
<ItemGroup>
<ClInclude Include="curl_processor.h" />
<ClInclude Include="EdgeItem.h" />
<ClInclude Include="stdafx.h" />
<CustomBuild Include="GraphicsView.h">
...
...
PaperGraph/PaperGraph.vcxproj.filters
View file @
15bfb79
...
...
@@ -83,6 +83,9 @@
<ClCompile Include="stdafx.cpp">
<Filter>PCH</Filter>
</ClCompile>
<ClCompile Include="curl_processor.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="PaperGraphWidget.h">
...
...
@@ -111,5 +114,8 @@
<ClInclude Include="stdafx.h">
<Filter>PCH</Filter>
</ClInclude>
<ClInclude Include="curl_processor.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
...
...
PaperGraph/curl_processor.cpp
0 → 100644
View file @
15bfb79
#include "stdafx.h"
#include "curl_processor.h"
curl_processor
::
curl_processor
()
{
}
curl_processor
::~
curl_processor
()
{
}
PaperGraph/curl_processor.h
0 → 100644
View file @
15bfb79
#ifndef CURL_PROCESSOR_H
#define CURL_PROCESSOR_H
#include <stdafx.h>
class
curl_processor
{
//private var
private:
CURL
*
curl
;
CURLcode
res
;
//constructor, destructor
public:
curl_processor
();
~
curl_processor
();
//method
public:
};
#endif // CURL_PROCESSOR_H
\ No newline at end of file
PaperGraph/main.cpp
View file @
15bfb79
...
...
@@ -2,36 +2,8 @@
#include "PaperGraphWidget.h"
#include "MainWindow.h"
#include <stdio.h>
#include <curl/curl.h>
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://example.com"
);
/* 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
;
...
...
PaperGraph/stdafx.h
View file @
15bfb79
...
...
@@ -29,6 +29,8 @@
#include <boost/graph/topology.hpp>
#include <boost/regex.hpp>
#include <curl/curl.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
...
...
Please
register
or
login
to post a comment