Now you can download a copy of these docs so you can use them offline! Download now
Inheritance diagram for AbstractNetworkTableEntryStore:
Collaboration diagram for AbstractNetworkTableEntryStore:

Public Member Functions

NetworkTableEntryGetEntry (EntryId entryId)
 
NetworkTableEntryGetEntry (std::string &name)
 
std::vector< std::string > * keys ()
 
void clearEntries ()
 
void clearIds ()
 
void SetOutgoingReceiver (OutgoingEntryReceiver *receiver)
 
void SetIncomingReceiver (OutgoingEntryReceiver *receiver)
 
void PutOutgoing (std::string &name, NetworkTableEntryType *type, EntryValue value)
 
void PutOutgoing (NetworkTableEntry *tableEntry, EntryValue value)
 
void offerIncomingAssignment (NetworkTableEntry *entry)
 
void offerIncomingUpdate (NetworkTableEntry *entry, EntryId sequenceNumber, EntryValue value)
 
void notifyEntries (ITable *table, ITableListener *listener)
 

Public Attributes

NTReentrantSemaphore LOCK
 

Protected Member Functions

 AbstractNetworkTableEntryStore (TableListenerManager &lstnManager)
 
virtual bool addEntry (NetworkTableEntry *entry)=0
 
virtual bool updateEntry (NetworkTableEntry *entry, SequenceNumber sequenceNumber, EntryValue value)=0
 

Protected Attributes

std::map< EntryId,
NetworkTableEntry * > 
idEntries
 
std::map< std::string,
NetworkTableEntry * > 
namedEntries
 
TableListenerManagerlistenerManager
 
OutgoingEntryReceiveroutgoingReceiver
 
OutgoingEntryReceiverincomingReceiver
 

Detailed Description

Definition at line 36 of file AbstractNetworkTableEntryStore.h.

Member Function Documentation

void AbstractNetworkTableEntryStore::clearEntries ( )

Remove all entries NOTE: This method should not be used with applications which cache entries which would lead to unknown results This method is for use in testing only

Definition at line 78 of file AbstractNetworkTableEntryStore.cpp.

void AbstractNetworkTableEntryStore::clearIds ( )

clear the id's of all entries

Definition at line 89 of file AbstractNetworkTableEntryStore.cpp.

NetworkTableEntry * AbstractNetworkTableEntryStore::GetEntry ( std::string &  name)

Get an entry based on it's name

Parameters
namethe name of the entry to look for
Returns
the entry or null if the entry does not exist

Definition at line 33 of file AbstractNetworkTableEntryStore.cpp.

void AbstractNetworkTableEntryStore::notifyEntries ( ITable table,
ITableListener listener 
)

Called to say that a listener should notify the listener manager of all of the entries

Parameters
listener
table

Definition at line 204 of file AbstractNetworkTableEntryStore.cpp.

void AbstractNetworkTableEntryStore::PutOutgoing ( std::string &  name,
NetworkTableEntryType type,
EntryValue  value 
)

Stores the given value under the given name and queues it for transmission to the server.

Parameters
nameThe name under which to store the given value.
typeThe type of the given value.
valueThe value to store.
Exceptions
TableKeyExistsWithDifferentTypeExceptionThrown if an entry already exists with the given name and is of a different type.

Definition at line 120 of file AbstractNetworkTableEntryStore.cpp.


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

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