WPILibC++
unspecified
|
A table whose values can be read and written to. More...
#include <ITable.h>
Public Member Functions | |
virtual bool | ContainsKey (llvm::StringRef key) const =0 |
Determines whether the given key is in this table. More... | |
virtual bool | ContainsSubTable (llvm::StringRef key) const =0 |
Determines whether there exists a non-empty subtable for this key in this table. More... | |
virtual std::shared_ptr< ITable > | GetSubTable (llvm::StringRef key) const =0 |
Gets the subtable in this table for the given name. More... | |
virtual std::vector< std::string > | GetKeys (int types=0) const =0 |
virtual std::vector< std::string > | GetSubTables () const =0 |
virtual void | SetPersistent (llvm::StringRef key)=0 |
Makes a key's value persistent through program restarts. More... | |
virtual void | ClearPersistent (llvm::StringRef key)=0 |
Stop making a key's value persistent through program restarts. More... | |
virtual bool | IsPersistent (llvm::StringRef key) const =0 |
Returns whether the value is persistent through program restarts. More... | |
virtual void | SetFlags (llvm::StringRef key, unsigned int flags)=0 |
Sets flags on the specified key in this table. More... | |
virtual void | ClearFlags (llvm::StringRef key, unsigned int flags)=0 |
Clears flags on the specified key in this table. More... | |
virtual unsigned int | GetFlags (llvm::StringRef key) const =0 |
Returns the flags for the specified key. More... | |
virtual void | Delete (llvm::StringRef key)=0 |
Deletes the specified key in this table. More... | |
virtual std::shared_ptr < nt::Value > | GetValue (llvm::StringRef key) const =0 |
Gets the value associated with a key as an object. More... | |
virtual bool | SetDefaultValue (llvm::StringRef key, std::shared_ptr< nt::Value > defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual bool | PutValue (llvm::StringRef key, std::shared_ptr< nt::Value > value)=0 |
Put a value in the table. More... | |
virtual bool | PutNumber (llvm::StringRef key, double value)=0 |
Put a number in the table. More... | |
virtual bool | SetDefaultNumber (llvm::StringRef key, double defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual bool | PutString (llvm::StringRef key, llvm::StringRef value)=0 |
Put a string in the table. More... | |
virtual bool | SetDefaultString (llvm::StringRef key, llvm::StringRef defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual bool | PutBoolean (llvm::StringRef key, bool value)=0 |
Put a boolean in the table. More... | |
virtual bool | SetDefaultBoolean (llvm::StringRef key, bool defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual bool | PutBooleanArray (llvm::StringRef key, llvm::ArrayRef< int > value)=0 |
Put a boolean array in the table. More... | |
virtual bool | SetDefaultBooleanArray (llvm::StringRef key, llvm::ArrayRef< int > defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual std::vector< int > | GetBooleanArray (llvm::StringRef key, llvm::ArrayRef< int > defaultValue) const =0 |
Returns the boolean array the key maps to. More... | |
virtual bool | PutNumberArray (llvm::StringRef key, llvm::ArrayRef< double > value)=0 |
Put a number array in the table. More... | |
virtual bool | SetDefaultNumberArray (llvm::StringRef key, llvm::ArrayRef< double > defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual std::vector< double > | GetNumberArray (llvm::StringRef key, llvm::ArrayRef< double > defaultValue) const =0 |
Returns the number array the key maps to. More... | |
virtual bool | PutStringArray (llvm::StringRef key, llvm::ArrayRef< std::string > value)=0 |
Put a string array in the table. More... | |
virtual bool | SetDefaultStringArray (llvm::StringRef key, llvm::ArrayRef< std::string > defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual std::vector< std::string > | GetStringArray (llvm::StringRef key, llvm::ArrayRef< std::string > defaultValue) const =0 |
Returns the string array the key maps to. More... | |
virtual bool | PutRaw (llvm::StringRef key, llvm::StringRef value)=0 |
Put a raw value (byte array) in the table. More... | |
virtual bool | SetDefaultRaw (llvm::StringRef key, llvm::StringRef defaultValue)=0 |
Gets the current value in the table, setting it if it does not exist. More... | |
virtual std::string | GetRaw (llvm::StringRef key, llvm::StringRef defaultValue) const =0 |
Returns the raw value (byte array) the key maps to. More... | |
virtual void | AddTableListener (ITableListener *listener)=0 |
Add a listener for changes to the table. More... | |
virtual void | AddTableListener (ITableListener *listener, bool immediateNotify)=0 |
Add a listener for changes to the table. More... | |
virtual void | AddTableListenerEx (ITableListener *listener, unsigned int flags)=0 |
Add a listener for changes to the table. More... | |
virtual void | AddTableListener (llvm::StringRef key, ITableListener *listener, bool immediateNotify)=0 |
Add a listener for changes to a specific key the table. More... | |
virtual void | AddTableListenerEx (llvm::StringRef key, ITableListener *listener, unsigned int flags)=0 |
Add a listener for changes to a specific key the table. More... | |
virtual void | AddSubTableListener (ITableListener *listener)=0 |
This will immediately notify the listener of all current sub tables. More... | |
virtual void | AddSubTableListener (ITableListener *listener, bool localNotify)=0 |
This will immediately notify the listener of all current sub tables. More... | |
virtual void | RemoveTableListener (ITableListener *listener)=0 |
Remove a listener from receiving table events. More... | |
virtual llvm::StringRef | GetPath () const =0 |
Gets the full path of this table. | |
A table whose values can be read and written to.
|
pure virtual |
This will immediately notify the listener of all current sub tables.
listener | the listener to add |
Implemented in NetworkTable.
|
pure virtual |
This will immediately notify the listener of all current sub tables.
listener | the listener to add |
localNotify | if true then this listener will be notified of all local changes in addition to all remote changes |
Implemented in NetworkTable.
|
pure virtual |
Add a listener for changes to the table.
listener | the listener to add |
Implemented in NetworkTable.
|
pure virtual |
Add a listener for changes to the table.
listener | the listener to add |
immediateNotify | if true then this listener will be notified of all current entries (marked as new) |
Implemented in NetworkTable.
|
pure virtual |
Add a listener for changes to a specific key the table.
key | the key to listen for |
listener | the listener to add |
immediateNotify | if true then this listener will be notified of all current entries (marked as new) |
Implemented in NetworkTable.
|
pure virtual |
Add a listener for changes to the table.
listener | the listener to add |
immediateNotify | if true then this listener will be notified of all current entries (marked as new) |
flags | bitmask of NT_NotifyKind specifying desired notifications |
Implemented in NetworkTable.
|
pure virtual |
Add a listener for changes to a specific key the table.
key | the key to listen for |
listener | the listener to add |
immediateNotify | if true then this listener will be notified of all current entries (marked as new) |
flags | bitmask of NT_NotifyKind specifying desired notifications |
Implemented in NetworkTable.
|
pure virtual |
Clears flags on the specified key in this table.
The key can not be null.
key | the key name |
flags | the flags to clear (bitmask) |
Implemented in NetworkTable.
|
pure virtual |
Stop making a key's value persistent through program restarts.
The key cannot be null.
key | the key name |
Implemented in NetworkTable.
|
pure virtual |
Determines whether the given key is in this table.
key | the key to search for |
Implemented in NetworkTable.
|
pure virtual |
Determines whether there exists a non-empty subtable for this key in this table.
key | the key to search for |
Implemented in NetworkTable.
|
pure virtual |
|
pure virtual |
Returns the boolean array the key maps to.
If the key does not exist or is of different type, it will return the default value.
key | the key to look up |
defaultValue | the value to be returned if no value is found |
Implemented in NetworkTable.
|
pure virtual |
Returns the flags for the specified key.
key | the key name |
Implemented in NetworkTable.
|
pure virtual |
types | bitmask of types; 0 is treated as a "don't care". |
Implemented in NetworkTable.
|
pure virtual |
Returns the number array the key maps to.
If the key does not exist or is of different type, it will return the default value.
key | the key to look up |
defaultValue | the value to be returned if no value is found |
Implemented in NetworkTable.
|
pure virtual |
Returns the raw value (byte array) the key maps to.
If the key does not exist or is of different type, it will return the default value.
key | the key to look up |
defaultValue | the value to be returned if no value is found |
Implemented in NetworkTable.
|
pure virtual |
Returns the string array the key maps to.
If the key does not exist or is of different type, it will return the default value.
key | the key to look up |
defaultValue | the value to be returned if no value is found |
Implemented in NetworkTable.
|
pure virtual |
Gets the subtable in this table for the given name.
key | the name of the table relative to this one |
Implemented in NetworkTable.
|
pure virtual |
Implemented in NetworkTable.
|
pure virtual |
Gets the value associated with a key as an object.
key | the key of the value to look up |
Implemented in NetworkTable.
|
pure virtual |
Returns whether the value is persistent through program restarts.
The key cannot be null.
key | the key name |
Implemented in NetworkTable.
|
pure virtual |
Put a boolean in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a boolean array in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a number in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a number array in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a raw value (byte array) in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a string in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a string array in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Put a value in the table.
key | the key to be assigned to |
value | the value that will be assigned |
Implemented in NetworkTable.
|
pure virtual |
Remove a listener from receiving table events.
listener | the listener to be removed |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Gets the current value in the table, setting it if it does not exist.
key | the key |
defaultValue | the default value to set if key doesn't exist. |
Implemented in NetworkTable.
|
pure virtual |
Sets flags on the specified key in this table.
The key can not be null.
key | the key name |
flags | the flags to set (bitmask) |
Implemented in NetworkTable.
|
pure virtual |
Makes a key's value persistent through program restarts.
key | the key to make persistent |
Implemented in NetworkTable.