replace boost filesystem with std filesystem; upgrade gtest and find it using cmake.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef BOOK_CLIENT_H_
|
||||
#define BOOK_CLIENT_H_
|
||||
|
||||
#include <filesystem>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
@@ -11,8 +12,6 @@
|
||||
|
||||
#include "book.h"
|
||||
|
||||
namespace bfs = boost::filesystem;
|
||||
|
||||
class BookClient {
|
||||
public:
|
||||
explicit BookClient(const std::string& url, int timeout = 0);
|
||||
@@ -30,13 +29,13 @@ public:
|
||||
bool Delete(const std::string& id);
|
||||
|
||||
// Get photo, save to the given path.
|
||||
bool GetPhoto(const std::string& id, const bfs::path& path);
|
||||
bool GetPhoto(const std::string& id, const std::filesystem::path& path);
|
||||
|
||||
// Set photo using the file of the given path.
|
||||
bool SetPhoto(const std::string& id, const bfs::path& path);
|
||||
bool SetPhoto(const std::string& id, const std::filesystem::path& path);
|
||||
|
||||
private:
|
||||
bool CheckPhoto(const bfs::path& photo);
|
||||
bool CheckPhoto(const std::filesystem::path& photo);
|
||||
|
||||
// Check HTTP response status.
|
||||
bool CheckStatus(webcc::ResponsePtr response, int expected_status);
|
||||
|
||||
Reference in New Issue
Block a user