-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade the minimum C++ version from 14 to 17 + Modernize code
- Loading branch information
1 parent
7be1d12
commit 567f76d
Showing
57 changed files
with
1,144 additions
and
1,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
#ifndef TURMS_CLIENT_DRIVER_STATE_STORE_H | ||
#define TURMS_CLIENT_DRIVER_STATE_STORE_H | ||
|
||
#include <boost/optional.hpp> | ||
#include <optional> | ||
#include <string> | ||
|
||
#include "turms/client/transport/tcp_client.h" | ||
|
||
namespace turms { | ||
namespace client { | ||
namespace driver { | ||
namespace turms::client::driver { | ||
|
||
struct StateStore { | ||
std::unique_ptr<transport::TcpClient> tcp; | ||
bool isConnected; | ||
bool isSessionOpen; | ||
boost::optional<std::string> sessionId; | ||
boost::optional<std::string> serverId; | ||
std::optional<std::string> sessionId; | ||
std::optional<std::string> serverId; | ||
int64_t lastRequestDate; | ||
|
||
auto reset() -> void; | ||
}; | ||
|
||
} // namespace driver | ||
} // namespace client | ||
} // namespace turms | ||
} // namespace turms::client::driver | ||
|
||
#endif // TURMS_CLIENT_DRIVER_STATE_STORE_H |
Oops, something went wrong.