|
OpenCPN Partial API docs
|
Implement peer_client.h – peer data sharing client non-gui abstraction. More...
#include <iostream>#include <sstream>#include <string>#include <unordered_map>#include <utility>#include <curl/curl.h>#include "nlohmann/json.hpp"#include <wx/fileconf.h>#include <wx/log.h>#include <wx/string.h>#include "observable/configvar.h"#include "model/config_vars.h"#include "model/nav_object_database.h"#include "model/peer_client.h"#include "model/ocpn_utils.h"#include "model/rest_server.h"#include "model/semantic_vers.h"Go to the source code of this file.
Classes | |
| struct | MemoryStruct |
Typedefs | |
| using | PeerDlgPair = std::pair< PeerDlgResult, std::string > |
Functions | |
| bool | CheckKey (const std::string &key, PeerData peer_data) |
| void | GetApiVersion (PeerData &peer_data) |
| bool | SendNavobjects (PeerData &peer_data) |
| Send data to server peer. | |
| bool | CheckNavObjects (PeerData &peer_data) |
| Check if server peer deems that writing these objects can be accepted i. | |
Implement peer_client.h – peer data sharing client non-gui abstraction.
Definition in file peer_client.cpp.
| using PeerDlgPair = std::pair<PeerDlgResult, std::string> |
Definition at line 57 of file peer_client.cpp.
| bool CheckKey | ( | const std::string & | key, |
| PeerData | peer_data | ||
| ) |
Definition at line 222 of file peer_client.cpp.
| bool CheckNavObjects | ( | PeerData & | peer_data | ) |
Check if server peer deems that writing these objects can be accepted i.
e., that the object(s) does not exist or can be overwritten.
Definition at line 456 of file peer_client.cpp.
| void GetApiVersion | ( | PeerData & | peer_data | ) |
Definition at line 236 of file peer_client.cpp.
| bool SendNavobjects | ( | PeerData & | peer_data | ) |
Send data to server peer.
Definition at line 439 of file peer_client.cpp.