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 <wx/fileconf.h>
#include <wx/json_defs.h>
#include <wx/jsonreader.h>
#include <wx/log.h>
#include <wx/string.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"
#include "observable_confvar.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 56 of file peer_client.cpp.
bool CheckKey | ( | const std::string & | key, |
PeerData | peer_data | ||
) |
Definition at line 224 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 458 of file peer_client.cpp.
void GetApiVersion | ( | PeerData & | peer_data | ) |
Definition at line 238 of file peer_client.cpp.
bool SendNavobjects | ( | PeerData & | peer_data | ) |
Send data to server peer.
Definition at line 441 of file peer_client.cpp.