mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Make NetworkTable constructor private/package-private. (#253)
Users should be using either NetworkTableInstance.getTable() or NetworkTable.getSubTable().
This commit is contained in:
@@ -50,8 +50,15 @@ class NetworkTable final : public ITable {
|
||||
static bool s_running;
|
||||
static unsigned int s_port;
|
||||
|
||||
struct private_init {};
|
||||
friend class NetworkTableInstance;
|
||||
|
||||
public:
|
||||
NetworkTable(NT_Inst inst, StringRef path);
|
||||
/**
|
||||
* Constructor. Use NetworkTableInstance::GetTable() or GetSubTable()
|
||||
* instead.
|
||||
*/
|
||||
NetworkTable(NT_Inst inst, StringRef path, const private_init&);
|
||||
virtual ~NetworkTable();
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user