455 std::string_view defaultValue);
504std::vector<uint8_t>
GetRaw(
NT_Handle subentry, std::span<const uint8_t> defaultValue);
547 std::span<const uint8_t> defaultValue);
639 std::span<const int> defaultValue);
731 std::span<const int64_t> defaultValue);
823 std::span<const float> defaultValue);
915 std::span<const double> defaultValue);
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition sha1.h:30
bool SetBoolean(NT_Handle pubentry, bool value, int64_t time=0)
Publish a new value.
std::vector< int > ReadQueueValuesBoolean(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< TimestampedBoolean > ReadQueueBoolean(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedBoolean GetAtomicBoolean(NT_Handle subentry, bool defaultValue)
Get the last published value along with its timestamp.
bool SetDefaultBoolean(NT_Handle pubentry, bool defaultValue)
Publish a default value.
bool GetBoolean(NT_Handle subentry, bool defaultValue)
Get the last published value.
std::vector< std::vector< int > > ReadQueueValuesBooleanArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetBooleanArray(NT_Handle pubentry, std::span< const int > value, int64_t time=0)
Publish a new value.
TimestampedBooleanArray GetAtomicBooleanArray(NT_Handle subentry, std::span< const int > defaultValue)
Get the last published value along with its timestamp.
bool SetDefaultBooleanArray(NT_Handle pubentry, std::span< const int > defaultValue)
Publish a default value.
std::vector< int > GetBooleanArray(NT_Handle subentry, std::span< const int > defaultValue)
Get the last published value.
std::vector< TimestampedBooleanArray > ReadQueueBooleanArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetDefaultDouble(NT_Handle pubentry, double defaultValue)
Publish a default value.
TimestampedDouble GetAtomicDouble(NT_Handle subentry, double defaultValue)
Get the last published value along with its timestamp.
double GetDouble(NT_Handle subentry, double defaultValue)
Get the last published value.
bool SetDouble(NT_Handle pubentry, double value, int64_t time=0)
Publish a new value.
std::vector< double > ReadQueueValuesDouble(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< TimestampedDouble > ReadQueueDouble(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< TimestampedDoubleArray > ReadQueueDoubleArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetDoubleArray(NT_Handle pubentry, std::span< const double > value, int64_t time=0)
Publish a new value.
std::vector< std::vector< double > > ReadQueueValuesDoubleArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetDefaultDoubleArray(NT_Handle pubentry, std::span< const double > defaultValue)
Publish a default value.
std::vector< double > GetDoubleArray(NT_Handle subentry, std::span< const double > defaultValue)
Get the last published value.
TimestampedDoubleArray GetAtomicDoubleArray(NT_Handle subentry, std::span< const double > defaultValue)
Get the last published value along with its timestamp.
bool SetDefaultFloat(NT_Handle pubentry, float defaultValue)
Publish a default value.
std::vector< float > ReadQueueValuesFloat(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedFloat GetAtomicFloat(NT_Handle subentry, float defaultValue)
Get the last published value along with its timestamp.
float GetFloat(NT_Handle subentry, float defaultValue)
Get the last published value.
bool SetFloat(NT_Handle pubentry, float value, int64_t time=0)
Publish a new value.
std::vector< TimestampedFloat > ReadQueueFloat(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< float > GetFloatArray(NT_Handle subentry, std::span< const float > defaultValue)
Get the last published value.
bool SetDefaultFloatArray(NT_Handle pubentry, std::span< const float > defaultValue)
Publish a default value.
std::vector< TimestampedFloatArray > ReadQueueFloatArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetFloatArray(NT_Handle pubentry, std::span< const float > value, int64_t time=0)
Publish a new value.
std::vector< std::vector< float > > ReadQueueValuesFloatArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedFloatArray GetAtomicFloatArray(NT_Handle subentry, std::span< const float > defaultValue)
Get the last published value along with its timestamp.
int64_t GetInteger(NT_Handle subentry, int64_t defaultValue)
Get the last published value.
bool SetDefaultInteger(NT_Handle pubentry, int64_t defaultValue)
Publish a default value.
std::vector< TimestampedInteger > ReadQueueInteger(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedInteger GetAtomicInteger(NT_Handle subentry, int64_t defaultValue)
Get the last published value along with its timestamp.
bool SetInteger(NT_Handle pubentry, int64_t value, int64_t time=0)
Publish a new value.
std::vector< int64_t > ReadQueueValuesInteger(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetIntegerArray(NT_Handle pubentry, std::span< const int64_t > value, int64_t time=0)
Publish a new value.
std::vector< int64_t > GetIntegerArray(NT_Handle subentry, std::span< const int64_t > defaultValue)
Get the last published value.
std::vector< TimestampedIntegerArray > ReadQueueIntegerArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetDefaultIntegerArray(NT_Handle pubentry, std::span< const int64_t > defaultValue)
Publish a default value.
std::vector< std::vector< int64_t > > ReadQueueValuesIntegerArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedIntegerArray GetAtomicIntegerArray(NT_Handle subentry, std::span< const int64_t > defaultValue)
Get the last published value along with its timestamp.
bool SetDefaultRaw(NT_Handle pubentry, std::span< const uint8_t > defaultValue)
Publish a default value.
std::vector< uint8_t > GetRaw(NT_Handle subentry, std::span< const uint8_t > defaultValue)
Get the last published value.
std::vector< std::vector< uint8_t > > ReadQueueValuesRaw(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< TimestampedRaw > ReadQueueRaw(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetRaw(NT_Handle pubentry, std::span< const uint8_t > value, int64_t time=0)
Publish a new value.
TimestampedRaw GetAtomicRaw(NT_Handle subentry, std::span< const uint8_t > defaultValue)
Get the last published value along with its timestamp.
std::string GetString(NT_Handle subentry, std::string_view defaultValue)
Get the last published value.
std::vector< TimestampedString > ReadQueueString(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetDefaultString(NT_Handle pubentry, std::string_view defaultValue)
Publish a default value.
bool SetString(NT_Handle pubentry, std::string_view value, int64_t time=0)
Publish a new value.
std::vector< std::string > ReadQueueValuesString(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
TimestampedString GetAtomicString(NT_Handle subentry, std::string_view defaultValue)
Get the last published value along with its timestamp.
bool SetDefaultStringArray(NT_Handle pubentry, std::span< const std::string > defaultValue)
Publish a default value.
std::vector< TimestampedStringArray > ReadQueueStringArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
bool SetStringArray(NT_Handle pubentry, std::span< const std::string > value, int64_t time=0)
Publish a new value.
TimestampedStringArray GetAtomicStringArray(NT_Handle subentry, std::span< const std::string > defaultValue)
Get the last published value along with its timestamp.
std::vector< std::vector< std::string > > ReadQueueValuesStringArray(NT_Handle subentry)
Get an array of all value changes since the last call to ReadQueue.
std::vector< std::string > GetStringArray(NT_Handle subentry, std::span< const std::string > defaultValue)
Get the last published value.
unsigned int NT_Handle
Definition ntcore_c.h:34
NetworkTables (ntcore) namespace.
Definition ntcore_cpp.h:36
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Foonathan namespace.
Definition ntcore_cpp.h:26
Timestamped value.
Definition ntcore_cpp_types.h:30
int64_t time
Time in local time base.
Definition ntcore_cpp_types.h:38
int64_t serverTime
Time in server time base.
Definition ntcore_cpp_types.h:43
Timestamped(int64_t time, int64_t serverTime, T value)
Definition ntcore_cpp_types.h:32
T value
Value.
Definition ntcore_cpp_types.h:48