WPILibC++ 2023.4.3-108-ge5452e3
|
NetworkTables (ntcore) namespace. More...
Namespaces | |
namespace | meta |
NetworkTables meta-topic decoding functions. | |
Classes | |
class | BooleanArrayEntry |
NetworkTables BooleanArray entry. More... | |
class | BooleanArrayPublisher |
NetworkTables BooleanArray publisher. More... | |
class | BooleanArraySubscriber |
NetworkTables BooleanArray subscriber. More... | |
class | BooleanArrayTopic |
NetworkTables BooleanArray topic. More... | |
class | BooleanEntry |
NetworkTables Boolean entry. More... | |
class | BooleanPublisher |
NetworkTables Boolean publisher. More... | |
class | BooleanSubscriber |
NetworkTables Boolean subscriber. More... | |
class | BooleanTopic |
NetworkTables Boolean topic. More... | |
struct | ConnectionInfo |
NetworkTables Connection Information. More... | |
class | DoubleArrayEntry |
NetworkTables DoubleArray entry. More... | |
class | DoubleArrayPublisher |
NetworkTables DoubleArray publisher. More... | |
class | DoubleArraySubscriber |
NetworkTables DoubleArray subscriber. More... | |
class | DoubleArrayTopic |
NetworkTables DoubleArray topic. More... | |
class | DoubleEntry |
NetworkTables Double entry. More... | |
class | DoublePublisher |
NetworkTables Double publisher. More... | |
class | DoubleSubscriber |
NetworkTables Double subscriber. More... | |
class | DoubleTopic |
NetworkTables Double topic. More... | |
class | Event |
NetworkTables event. More... | |
struct | EventFlags |
Event notification flags. More... | |
class | FloatArrayEntry |
NetworkTables FloatArray entry. More... | |
class | FloatArrayPublisher |
NetworkTables FloatArray publisher. More... | |
class | FloatArraySubscriber |
NetworkTables FloatArray subscriber. More... | |
class | FloatArrayTopic |
NetworkTables FloatArray topic. More... | |
class | FloatEntry |
NetworkTables Float entry. More... | |
class | FloatPublisher |
NetworkTables Float publisher. More... | |
class | FloatSubscriber |
NetworkTables Float subscriber. More... | |
class | FloatTopic |
NetworkTables Float topic. More... | |
class | GenericEntry |
NetworkTables generic entry. More... | |
class | GenericPublisher |
NetworkTables generic publisher. More... | |
class | GenericSubscriber |
NetworkTables generic subscriber. More... | |
class | IntegerArrayEntry |
NetworkTables IntegerArray entry. More... | |
class | IntegerArrayPublisher |
NetworkTables IntegerArray publisher. More... | |
class | IntegerArraySubscriber |
NetworkTables IntegerArray subscriber. More... | |
class | IntegerArrayTopic |
NetworkTables IntegerArray topic. More... | |
class | IntegerEntry |
NetworkTables Integer entry. More... | |
class | IntegerPublisher |
NetworkTables Integer publisher. More... | |
class | IntegerSubscriber |
NetworkTables Integer subscriber. More... | |
class | IntegerTopic |
NetworkTables Integer topic. More... | |
class | LogMessage |
NetworkTables log message. More... | |
class | MultiSubscriber |
Subscribe to multiple topics based on one or more topic name prefixes. More... | |
class | NetworkTable |
A network table that knows its subtable path. More... | |
class | NetworkTableEntry |
NetworkTables Entry. More... | |
class | NetworkTableInstance |
NetworkTables Instance. More... | |
class | NetworkTableListener |
Event listener. More... | |
class | NetworkTableListenerPoller |
Event polled listener. More... | |
class | NTSendable |
Interface for NetworkTable Sendable objects. More... | |
class | NTSendableBuilder |
class | Publisher |
NetworkTables publisher. More... | |
struct | PubSubOptions |
NetworkTables publish/subscribe options. More... | |
class | RawEntry |
NetworkTables Raw entry. More... | |
class | RawPublisher |
NetworkTables Raw publisher. More... | |
class | RawSubscriber |
NetworkTables Raw subscriber. More... | |
class | RawTopic |
NetworkTables Raw topic. More... | |
class | StringArrayEntry |
NetworkTables StringArray entry. More... | |
class | StringArrayPublisher |
NetworkTables StringArray publisher. More... | |
class | StringArraySubscriber |
NetworkTables StringArray subscriber. More... | |
class | StringArrayTopic |
NetworkTables StringArray topic. More... | |
class | StringEntry |
NetworkTables String entry. More... | |
class | StringPublisher |
NetworkTables String publisher. More... | |
class | StringSubscriber |
NetworkTables String subscriber. More... | |
class | StringTopic |
NetworkTables String topic. More... | |
class | Subscriber |
NetworkTables subscriber. More... | |
struct | TimestampedBoolean |
Timestamped Boolean. More... | |
struct | TimestampedBooleanArray |
Timestamped BooleanArray. More... | |
struct | TimestampedBooleanArrayView |
Timestamped BooleanArray view (for SmallVector-taking functions). More... | |
struct | TimestampedDouble |
Timestamped Double. More... | |
struct | TimestampedDoubleArray |
Timestamped DoubleArray. More... | |
struct | TimestampedDoubleArrayView |
Timestamped DoubleArray view (for SmallVector-taking functions). More... | |
struct | TimestampedFloat |
Timestamped Float. More... | |
struct | TimestampedFloatArray |
Timestamped FloatArray. More... | |
struct | TimestampedFloatArrayView |
Timestamped FloatArray view (for SmallVector-taking functions). More... | |
struct | TimestampedInteger |
Timestamped Integer. More... | |
struct | TimestampedIntegerArray |
Timestamped IntegerArray. More... | |
struct | TimestampedIntegerArrayView |
Timestamped IntegerArray view (for SmallVector-taking functions). More... | |
struct | TimestampedRaw |
Timestamped Raw. More... | |
struct | TimestampedRawView |
Timestamped Raw view (for SmallVector-taking functions). More... | |
struct | TimestampedString |
Timestamped String. More... | |
struct | TimestampedStringArray |
Timestamped StringArray. More... | |
struct | TimestampedStringView |
Timestamped String view (for SmallVector-taking functions). More... | |
struct | TimestampedUnit |
Timestamped unit. More... | |
class | TimeSyncEventData |
NetworkTables time sync event data. More... | |
class | Topic |
NetworkTables Topic. More... | |
struct | TopicInfo |
NetworkTables Topic Information. More... | |
class | UnitEntry |
NetworkTables unit-typed entry. More... | |
class | UnitPublisher |
NetworkTables unit-typed publisher. More... | |
class | UnitSubscriber |
NetworkTables unit-typed subscriber. More... | |
class | UnitTopic |
NetworkTables unit-typed topic. More... | |
class | Value |
A network table entry value. More... | |
class | ValueEventData |
NetworkTables Value Event Data. More... | |
Typedefs | |
using | NetworkTableValue = Value |
NetworkTable Value alias for similarity with Java. More... | |
using | ListenerCallback = std::function< void(const Event &)> |
Enumerations | |
enum class | NetworkTableType { NetworkTableType::kUnassigned = NT_UNASSIGNED , NetworkTableType::kBoolean = NT_BOOLEAN , NetworkTableType::kDouble = NT_DOUBLE , NetworkTableType::kString = NT_STRING , NetworkTableType::kRaw = NT_RAW , NetworkTableType::kBooleanArray = NT_BOOLEAN_ARRAY , NetworkTableType::kDoubleArray = NT_DOUBLE_ARRAY , NetworkTableType::kStringArray = NT_STRING_ARRAY , NetworkTableType::kInteger = NT_INTEGER , NetworkTableType::kFloat = NT_FLOAT , NetworkTableType::kIntegerArray = NT_INTEGER_ARRAY , NetworkTableType::kFloatArray = NT_FLOAT_ARRAY } |
NetworkTable entry type. More... | |
Functions | |
bool | operator== (const Value &lhs, const Value &rhs) |
NT_Inst | GetDefaultInstance () |
Get default instance. More... | |
NT_Inst | CreateInstance () |
Create an instance. More... | |
void | ResetInstance (NT_Inst inst) |
Reset the internals of an instance. More... | |
void | DestroyInstance (NT_Inst inst) |
Destroy an instance. More... | |
NT_Inst | GetInstanceFromHandle (NT_Handle handle) |
Get instance handle from another handle. More... | |
NT_Entry | GetEntry (NT_Inst inst, std::string_view name) |
Get Entry Handle. More... | |
std::string | GetEntryName (NT_Entry entry) |
Gets the name of the specified entry. More... | |
NT_Type | GetEntryType (NT_Entry entry) |
Gets the type for the specified entry, or unassigned if non existent. More... | |
int64_t | GetEntryLastChange (NT_Handle subentry) |
Gets the last time the entry was changed. More... | |
Value | GetEntryValue (NT_Handle subentry) |
Get Entry Value. More... | |
bool | SetDefaultEntryValue (NT_Entry entry, const Value &value) |
Set Default Entry Value. More... | |
bool | SetEntryValue (NT_Entry entry, const Value &value) |
Set Entry Value. More... | |
void | SetEntryFlags (NT_Entry entry, unsigned int flags) |
Set Entry Flags. More... | |
unsigned int | GetEntryFlags (NT_Entry entry) |
Get Entry Flags. More... | |
std::vector< Value > | ReadQueueValue (NT_Handle subentry) |
Read Entry Queue. More... | |
std::vector< NT_Topic > | GetTopics (NT_Inst inst, std::string_view prefix, unsigned int types) |
Get Published Topics. More... | |
std::vector< NT_Topic > | GetTopics (NT_Inst inst, std::string_view prefix, std::span< const std::string_view > types) |
Get Published Topics. More... | |
std::vector< TopicInfo > | GetTopicInfo (NT_Inst inst, std::string_view prefix, unsigned int types) |
Get Topic Information about multiple topics. More... | |
std::vector< TopicInfo > | GetTopicInfo (NT_Inst inst, std::string_view prefix, std::span< const std::string_view > types) |
Get Topic Information about multiple topics. More... | |
TopicInfo | GetTopicInfo (NT_Topic topic) |
Gets Topic Information. More... | |
NT_Topic | GetTopic (NT_Inst inst, std::string_view name) |
Gets Topic Handle. More... | |
std::string | GetTopicName (NT_Topic topic) |
Gets the name of the specified topic. More... | |
NT_Type | GetTopicType (NT_Topic topic) |
Gets the type for the specified topic, or unassigned if non existent. More... | |
std::string | GetTopicTypeString (NT_Topic topic) |
Gets the type string for the specified topic, or empty string if non existent. More... | |
void | SetTopicPersistent (NT_Topic topic, bool value) |
Sets the persistent property of a topic. More... | |
bool | GetTopicPersistent (NT_Topic topic) |
Gets the persistent property of a topic. More... | |
void | SetTopicRetained (NT_Topic topic, bool value) |
Sets the retained property of a topic. More... | |
bool | GetTopicRetained (NT_Topic topic) |
Gets the retained property of a topic. More... | |
bool | GetTopicExists (NT_Handle handle) |
Determine if topic exists (e.g. More... | |
wpi::json | GetTopicProperty (NT_Topic topic, std::string_view name) |
Gets the current value of a property (as a JSON object). More... | |
void | SetTopicProperty (NT_Topic topic, std::string_view name, const wpi::json &value) |
Sets a property value. More... | |
void | DeleteTopicProperty (NT_Topic topic, std::string_view name) |
Deletes a property. More... | |
wpi::json | GetTopicProperties (NT_Topic topic) |
Gets all topic properties as a JSON object. More... | |
bool | SetTopicProperties (NT_Topic topic, const wpi::json &update) |
Updates multiple topic properties. More... | |
NT_Subscriber | Subscribe (NT_Topic topic, NT_Type type, std::string_view typeStr, const PubSubOptions &options=kDefaultPubSubOptions) |
Creates a new subscriber to value changes on a topic. More... | |
void | Unsubscribe (NT_Subscriber sub) |
Stops subscriber. More... | |
NT_Publisher | Publish (NT_Topic topic, NT_Type type, std::string_view typeStr, const PubSubOptions &options=kDefaultPubSubOptions) |
Creates a new publisher to a topic. More... | |
NT_Publisher | PublishEx (NT_Topic topic, NT_Type type, std::string_view typeStr, const wpi::json &properties, const PubSubOptions &options=kDefaultPubSubOptions) |
Creates a new publisher to a topic. More... | |
void | Unpublish (NT_Handle pubentry) |
Stops publisher. More... | |
NT_Entry | GetEntry (NT_Topic topic, NT_Type type, std::string_view typeStr, const PubSubOptions &options=kDefaultPubSubOptions) |
Creates a new entry (subscriber and weak publisher) to a topic. More... | |
void | ReleaseEntry (NT_Entry entry) |
Stops entry subscriber/publisher. More... | |
void | Release (NT_Handle pubsubentry) |
Stops entry/subscriber/publisher. More... | |
NT_Topic | GetTopicFromHandle (NT_Handle pubsubentry) |
Gets the topic handle from an entry/subscriber/publisher handle. More... | |
NT_MultiSubscriber | SubscribeMultiple (NT_Inst inst, std::span< const std::string_view > prefixes, const PubSubOptions &options=kDefaultPubSubOptions) |
Subscribes to multiple topics based on one or more topic name prefixes. More... | |
void | UnsubscribeMultiple (NT_MultiSubscriber sub) |
Unsubscribes a multi-subscriber. More... | |
NT_ListenerPoller | CreateListenerPoller (NT_Inst inst) |
Creates a listener poller. More... | |
void | DestroyListenerPoller (NT_ListenerPoller poller) |
Destroys a listener poller. More... | |
std::vector< Event > | ReadListenerQueue (NT_ListenerPoller poller) |
Read notifications. More... | |
void | RemoveListener (NT_Listener listener) |
Removes a listener. More... | |
bool | WaitForListenerQueue (NT_Handle handle, double timeout) |
Wait for the listener queue to be empty. More... | |
NT_Listener | AddListener (NT_Inst inst, std::span< const std::string_view > prefixes, unsigned int mask, ListenerCallback callback) |
Create a listener for changes to topics with names that start with any of the given prefixes. More... | |
NT_Listener | AddListener (NT_Handle handle, unsigned int mask, ListenerCallback callback) |
Create a listener. More... | |
NT_Listener | AddPolledListener (NT_ListenerPoller poller, std::span< const std::string_view > prefixes, unsigned int mask) |
Creates a polled listener. More... | |
NT_Listener | AddPolledListener (NT_ListenerPoller poller, NT_Handle handle, unsigned int mask) |
Creates a polled listener. More... | |
unsigned int | GetNetworkMode (NT_Inst inst) |
Get the current network mode. More... | |
void | StartLocal (NT_Inst inst) |
Starts local-only operation. More... | |
void | StopLocal (NT_Inst inst) |
Stops local-only operation. More... | |
void | StartServer (NT_Inst inst, std::string_view persist_filename, const char *listen_address, unsigned int port3, unsigned int port4) |
Starts a server using the specified filename, listening address, and port. More... | |
void | StopServer (NT_Inst inst) |
Stops the server if it is running. More... | |
void | StartClient3 (NT_Inst inst, std::string_view identity) |
Starts a NT3 client. More... | |
void | StartClient4 (NT_Inst inst, std::string_view identity) |
Starts a NT4 client. More... | |
void | StopClient (NT_Inst inst) |
Stops the client if it is running. More... | |
void | SetServer (NT_Inst inst, const char *server_name, unsigned int port) |
Sets server address and port for client (without restarting client). More... | |
void | SetServer (NT_Inst inst, std::span< const std::pair< std::string_view, unsigned int > > servers) |
Sets server addresses for client (without restarting client). More... | |
void | SetServerTeam (NT_Inst inst, unsigned int team, unsigned int port) |
Sets server addresses and port for client (without restarting client). More... | |
void | Disconnect (NT_Inst inst) |
Disconnects the client if it's running and connected. More... | |
void | StartDSClient (NT_Inst inst, unsigned int port) |
Starts requesting server address from Driver Station. More... | |
void | StopDSClient (NT_Inst inst) |
Stops requesting server address from Driver Station. More... | |
void | FlushLocal (NT_Inst inst) |
Flush local updates. More... | |
void | Flush (NT_Inst inst) |
Flush to network. More... | |
std::vector< ConnectionInfo > | GetConnections (NT_Inst inst) |
Get information on the currently established network connections. More... | |
bool | IsConnected (NT_Inst inst) |
Return whether or not the instance is connected to another node. More... | |
std::optional< int64_t > | GetServerTimeOffset (NT_Inst inst) |
Get the time offset between server time and local time. More... | |
int64_t | Now () |
Returns monotonic current time in 1 us increments. More... | |
void | SetNow (int64_t timestamp) |
Sets the current timestamp used for timestamping values that do not provide a timestamp (e.g. More... | |
NT_Type | GetTypeFromString (std::string_view typeString) |
Turns a type string into a type enum value. More... | |
std::string_view | GetStringFromType (NT_Type type) |
Turns a type enum value into a type string. More... | |
NT_DataLogger | StartEntryDataLog (NT_Inst inst, wpi::log::DataLog &log, std::string_view prefix, std::string_view logPrefix) |
Starts logging entry changes to a DataLog. More... | |
void | StopEntryDataLog (NT_DataLogger logger) |
Stops logging entry changes to a DataLog. More... | |
NT_ConnectionDataLogger | StartConnectionDataLog (NT_Inst inst, wpi::log::DataLog &log, std::string_view name) |
Starts logging connection changes to a DataLog. More... | |
void | StopConnectionDataLog (NT_ConnectionDataLogger logger) |
Stops logging connection changes to a DataLog. More... | |
NT_Listener | AddLogger (NT_Inst inst, unsigned int min_level, unsigned int max_level, ListenerCallback func) |
Add logger callback function. More... | |
NT_Listener | AddPolledLogger (NT_ListenerPoller poller, unsigned int min_level, unsigned int max_level) |
Set the log level for a log poller. More... | |
bool | SetBoolean (NT_Handle pubentry, bool value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultBoolean (NT_Handle pubentry, bool defaultValue) |
Publish a default value. More... | |
bool | GetBoolean (NT_Handle subentry, bool defaultValue) |
Get the last published value. More... | |
TimestampedBoolean | GetAtomicBoolean (NT_Handle subentry, bool defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedBoolean > | ReadQueueBoolean (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< int > | ReadQueueValuesBoolean (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
bool | SetInteger (NT_Handle pubentry, int64_t value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultInteger (NT_Handle pubentry, int64_t defaultValue) |
Publish a default value. More... | |
int64_t | GetInteger (NT_Handle subentry, int64_t defaultValue) |
Get the last published value. More... | |
TimestampedInteger | GetAtomicInteger (NT_Handle subentry, int64_t defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedInteger > | ReadQueueInteger (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< int64_t > | ReadQueueValuesInteger (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
bool | SetFloat (NT_Handle pubentry, float value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultFloat (NT_Handle pubentry, float defaultValue) |
Publish a default value. More... | |
float | GetFloat (NT_Handle subentry, float defaultValue) |
Get the last published value. More... | |
TimestampedFloat | GetAtomicFloat (NT_Handle subentry, float defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedFloat > | ReadQueueFloat (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< float > | ReadQueueValuesFloat (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
bool | SetDouble (NT_Handle pubentry, double value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultDouble (NT_Handle pubentry, double defaultValue) |
Publish a default value. More... | |
double | GetDouble (NT_Handle subentry, double defaultValue) |
Get the last published value. More... | |
TimestampedDouble | GetAtomicDouble (NT_Handle subentry, double defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedDouble > | ReadQueueDouble (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< double > | ReadQueueValuesDouble (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
bool | SetString (NT_Handle pubentry, std::string_view value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultString (NT_Handle pubentry, std::string_view defaultValue) |
Publish a default value. More... | |
std::string | GetString (NT_Handle subentry, std::string_view defaultValue) |
Get the last published value. More... | |
TimestampedString | GetAtomicString (NT_Handle subentry, std::string_view defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedString > | ReadQueueString (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::string > | ReadQueueValuesString (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::string_view | GetString (NT_Handle subentry, wpi::SmallVectorImpl< char > &buf, std::string_view defaultValue) |
TimestampedStringView | GetAtomicString (NT_Handle subentry, wpi::SmallVectorImpl< char > &buf, std::string_view defaultValue) |
bool | SetRaw (NT_Handle pubentry, std::span< const uint8_t > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultRaw (NT_Handle pubentry, std::span< const uint8_t > defaultValue) |
Publish a default value. More... | |
std::vector< uint8_t > | GetRaw (NT_Handle subentry, std::span< const uint8_t > defaultValue) |
Get the last published value. More... | |
TimestampedRaw | GetAtomicRaw (NT_Handle subentry, std::span< const uint8_t > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedRaw > | ReadQueueRaw (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< uint8_t > > | ReadQueueValuesRaw (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::span< uint8_t > | GetRaw (NT_Handle subentry, wpi::SmallVectorImpl< uint8_t > &buf, std::span< const uint8_t > defaultValue) |
TimestampedRawView | GetAtomicRaw (NT_Handle subentry, wpi::SmallVectorImpl< uint8_t > &buf, std::span< const uint8_t > defaultValue) |
bool | SetBooleanArray (NT_Handle pubentry, std::span< const int > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultBooleanArray (NT_Handle pubentry, std::span< const int > defaultValue) |
Publish a default value. More... | |
std::vector< int > | GetBooleanArray (NT_Handle subentry, std::span< const int > defaultValue) |
Get the last published value. More... | |
TimestampedBooleanArray | GetAtomicBooleanArray (NT_Handle subentry, std::span< const int > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedBooleanArray > | ReadQueueBooleanArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< int > > | ReadQueueValuesBooleanArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::span< int > | GetBooleanArray (NT_Handle subentry, wpi::SmallVectorImpl< int > &buf, std::span< const int > defaultValue) |
TimestampedBooleanArrayView | GetAtomicBooleanArray (NT_Handle subentry, wpi::SmallVectorImpl< int > &buf, std::span< const int > defaultValue) |
bool | SetIntegerArray (NT_Handle pubentry, std::span< const int64_t > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultIntegerArray (NT_Handle pubentry, std::span< const int64_t > defaultValue) |
Publish a default value. More... | |
std::vector< int64_t > | GetIntegerArray (NT_Handle subentry, std::span< const int64_t > defaultValue) |
Get the last published value. More... | |
TimestampedIntegerArray | GetAtomicIntegerArray (NT_Handle subentry, std::span< const int64_t > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedIntegerArray > | ReadQueueIntegerArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< int64_t > > | ReadQueueValuesIntegerArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::span< int64_t > | GetIntegerArray (NT_Handle subentry, wpi::SmallVectorImpl< int64_t > &buf, std::span< const int64_t > defaultValue) |
TimestampedIntegerArrayView | GetAtomicIntegerArray (NT_Handle subentry, wpi::SmallVectorImpl< int64_t > &buf, std::span< const int64_t > defaultValue) |
bool | SetFloatArray (NT_Handle pubentry, std::span< const float > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultFloatArray (NT_Handle pubentry, std::span< const float > defaultValue) |
Publish a default value. More... | |
std::vector< float > | GetFloatArray (NT_Handle subentry, std::span< const float > defaultValue) |
Get the last published value. More... | |
TimestampedFloatArray | GetAtomicFloatArray (NT_Handle subentry, std::span< const float > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedFloatArray > | ReadQueueFloatArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< float > > | ReadQueueValuesFloatArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::span< float > | GetFloatArray (NT_Handle subentry, wpi::SmallVectorImpl< float > &buf, std::span< const float > defaultValue) |
TimestampedFloatArrayView | GetAtomicFloatArray (NT_Handle subentry, wpi::SmallVectorImpl< float > &buf, std::span< const float > defaultValue) |
bool | SetDoubleArray (NT_Handle pubentry, std::span< const double > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultDoubleArray (NT_Handle pubentry, std::span< const double > defaultValue) |
Publish a default value. More... | |
std::vector< double > | GetDoubleArray (NT_Handle subentry, std::span< const double > defaultValue) |
Get the last published value. More... | |
TimestampedDoubleArray | GetAtomicDoubleArray (NT_Handle subentry, std::span< const double > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedDoubleArray > | ReadQueueDoubleArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< double > > | ReadQueueValuesDoubleArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::span< double > | GetDoubleArray (NT_Handle subentry, wpi::SmallVectorImpl< double > &buf, std::span< const double > defaultValue) |
TimestampedDoubleArrayView | GetAtomicDoubleArray (NT_Handle subentry, wpi::SmallVectorImpl< double > &buf, std::span< const double > defaultValue) |
bool | SetStringArray (NT_Handle pubentry, std::span< const std::string > value, int64_t time=0) |
Publish a new value. More... | |
bool | SetDefaultStringArray (NT_Handle pubentry, std::span< const std::string > defaultValue) |
Publish a default value. More... | |
std::vector< std::string > | GetStringArray (NT_Handle subentry, std::span< const std::string > defaultValue) |
Get the last published value. More... | |
TimestampedStringArray | GetAtomicStringArray (NT_Handle subentry, std::span< const std::string > defaultValue) |
Get the last published value along with its timestamp. More... | |
std::vector< TimestampedStringArray > | ReadQueueStringArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
std::vector< std::vector< std::string > > | ReadQueueValuesStringArray (NT_Handle subentry) |
Get an array of all value changes since the last call to ReadQueue. More... | |
Variables | |
constexpr PubSubOptions | kDefaultPubSubOptions |
Default publish/subscribe options. More... | |
NetworkTables (ntcore) namespace.