mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
NetworkTable interface: Provide method to set persistent filename.
This commit is contained in:
@@ -17,6 +17,7 @@ class NetworkTable : public ITable {
|
||||
std::vector<Listener> m_listeners;
|
||||
|
||||
static std::string s_ip_address;
|
||||
static std::string s_persistent_filename;
|
||||
static bool s_client;
|
||||
static bool s_running;
|
||||
|
||||
@@ -62,6 +63,13 @@ class NetworkTable : public ITable {
|
||||
*/
|
||||
static void SetIPAddress(llvm::StringRef address);
|
||||
|
||||
/**
|
||||
* Sets the persistent filename.
|
||||
* @param filename the filename that the network tables server uses for
|
||||
* automatic loading and saving of persistent values
|
||||
*/
|
||||
static void SetPersistentFilename(llvm::StringRef filename);
|
||||
|
||||
/**
|
||||
* Sets the network identity.
|
||||
* This is provided in the connection info on the remote end.
|
||||
|
||||
Reference in New Issue
Block a user