Now you can download a copy of these docs so you can use them offline! Download now

#include <NetworkTableNode.h>

Inheritance diagram for NetworkTableNode:
Collaboration diagram for NetworkTableNode:

Public Member Functions

AbstractNetworkTableEntryStoreGetEntryStore ()
 
void PutBoolean (std::string &name, bool value)
 
bool GetBoolean (std::string &name)
 
void PutDouble (std::string &name, double value)
 
double GetDouble (std::string &name)
 
void PutString (std::string &name, std::string &value)
 
std::string & GetString (std::string &name)
 
void PutComplex (std::string &name, ComplexData &value)
 
void retrieveValue (std::string &name, ComplexData &externalData)
 
void PutValue (std::string &name, NetworkTableEntryType *type, EntryValue value)
 
void PutValue (NetworkTableEntry *entry, EntryValue value)
 
EntryValue GetValue (std::string &name)
 
bool ContainsKey (std::string &key)
 
virtual void Close ()=0
 
void AddConnectionListener (IRemoteConnectionListener *listener, bool immediateNotify)
 
void RemoveConnectionListener (IRemoteConnectionListener *listener)
 
void FireConnectedEvent ()
 
void FireDisconnectedEvent ()
 
void AddTableListener (ITableListener *listener, bool immediateNotify)
 
void RemoveTableListener (ITableListener *listener)
 
void FireTableListeners (std::string &key, EntryValue value, bool isNew)
 
- Public Member Functions inherited from IRemote
virtual bool IsConnected ()=0
 
virtual bool IsServer ()=0
 

Protected Member Functions

 NetworkTableNode (AbstractNetworkTableEntryStore &entryStore)
 

Protected Attributes

AbstractNetworkTableEntryStoreentryStore
 

Detailed Description

represents a node (either a client or a server) in a network tables 2.0
implementers of the class must ensure that they call init(NetworkTableTransactionPool, AbstractNetworkTableEntryStore) before calling any other methods on this class

Author
Mitchell

Definition at line 32 of file NetworkTableNode.h.

Member Function Documentation

void NetworkTableNode::AddConnectionListener ( IRemoteConnectionListener listener,
bool  immediateNotify 
)
virtual

Register an object to listen for connection and disconnection events

Parameters
listenerthe listener to be register
immediateNotifyif the listener object should be notified of the current connection state

Implements IRemote.

Definition at line 134 of file NetworkTableNode.cpp.

virtual void NetworkTableNode::Close ( )
pure virtual

close all networking activity related to this node

Implemented in NetworkTableServer, and NetworkTableClient.

bool NetworkTableNode::ContainsKey ( std::string &  key)
Parameters
keythe key to check for existence
Returns
true if the table has the given key

Definition at line 130 of file NetworkTableNode.cpp.

void NetworkTableNode::FireConnectedEvent ( )
virtual

called when something is connected

Implements ClientConnectionListenerManager.

Definition at line 146 of file NetworkTableNode.cpp.

void NetworkTableNode::FireDisconnectedEvent ( )
virtual

called when something is disconnected

Implements ClientConnectionListenerManager.

Definition at line 150 of file NetworkTableNode.cpp.

AbstractNetworkTableEntryStore & NetworkTableNode::GetEntryStore ( )
Returns
the entry store used by this node

Definition at line 22 of file NetworkTableNode.cpp.

void NetworkTableNode::PutValue ( std::string &  name,
NetworkTableEntryType type,
EntryValue  value 
)

Put a value with a specific network table type

Parameters
namethe name of the entry to associate with the given value
typethe type of the entry
valuethe actual value of the entry

Definition at line 85 of file NetworkTableNode.cpp.

void NetworkTableNode::RemoveConnectionListener ( IRemoteConnectionListener listener)
virtual

Unregister a listener from connection events

Parameters
listenerthe listener to be unregistered

Implements IRemote.

Definition at line 141 of file NetworkTableNode.cpp.


The documentation for this class was generated from the following files:

Generated on Sat Apr 26 2014 12:26:46 for WPILibC++ by doxygen 1.8.6