74 float GetFloat(
float defaultValue)
const;
83 double GetDouble(
double defaultValue)
const;
101 std::vector<uint8_t>
GetRaw(std::span<const uint8_t> defaultValue)
const;
117 std::vector<int>
GetBooleanArray(std::span<const int> defaultValue)
const;
130 std::span<const int64_t> defaultValue)
const;
142 std::vector<float>
GetFloatArray(std::span<const float> defaultValue)
const;
155 std::span<const double> defaultValue)
const;
168 std::span<const std::string> defaultValue)
const;
180 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables generic entry.
Definition: GenericEntry.h:435
void Unpublish()
Stops publishing the entry if it's published.
Definition: GenericEntry.inc:211
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: GenericEntry.h:466
Topic TopicType
Definition: GenericEntry.h:439
TopicType GetTopic() const
Get the corresponding topic.
Definition: GenericEntry.inc:207
NetworkTables generic publisher.
Definition: GenericEntry.h:193
bool SetDefaultRaw(std::span< const uint8_t > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:170
bool SetDefaultDoubleArray(std::span< const double > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:190
bool SetDefaultString(std::string_view defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:166
bool SetString(std::string_view value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:107
bool SetDouble(double value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:103
TopicType GetTopic() const
Get the corresponding topic.
Definition: GenericEntry.inc:200
bool SetDoubleArray(std::span< const double > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:136
bool SetDefaultDouble(double defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:162
bool SetStringArray(std::span< const std::string > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:141
bool SetBoolean(bool value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:91
void SetDefault(ParamType value)
Publish a default value.
Definition: GenericEntry.inc:146
bool SetDefaultFloatArray(std::span< const float > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:185
bool SetInteger(int64_t value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:95
bool SetDefaultBooleanArray(std::span< const int > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:175
bool SetDefaultFloat(float defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:158
bool SetFloat(float value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:99
void Set(ParamType value)
Publish a new value.
Definition: GenericEntry.inc:87
bool SetFloatArray(std::span< const float > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:131
bool SetDefaultInteger(int64_t defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:154
bool SetIntegerArray(std::span< const int64_t > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:126
bool SetDefaultBoolean(bool defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:150
bool SetBooleanArray(std::span< const bool > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:116
bool SetDefaultIntegerArray(std::span< const int64_t > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:180
bool SetDefaultStringArray(std::span< const std::string > defaultValue)
Sets the entry's value if it does not exist.
Definition: GenericEntry.inc:195
GenericPublisher()=default
bool SetRaw(std::span< const uint8_t > value, int64_t time=0)
Sets the entry's value.
Definition: GenericEntry.inc:111
NetworkTables generic subscriber.
Definition: GenericEntry.h:24
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: GenericEntry.inc:76
double GetDouble(double defaultValue) const
Gets the entry's value as a double.
Definition: GenericEntry.inc:37
std::vector< int > GetBooleanArray(std::span< const int > defaultValue) const
Gets the entry's value as a boolean array.
Definition: GenericEntry.inc:51
int64_t GetInteger(int64_t defaultValue) const
Gets the entry's value as a integer.
Definition: GenericEntry.inc:29
TopicType GetTopic() const
Get the corresponding topic.
Definition: GenericEntry.inc:80
float GetFloat(float defaultValue) const
Gets the entry's value as a float.
Definition: GenericEntry.inc:33
std::vector< float > GetFloatArray(std::span< const float > defaultValue) const
Gets the entry's value as a float array.
Definition: GenericEntry.inc:61
ValueType Get() const
Get the last published value.
Definition: GenericEntry.inc:21
std::vector< uint8_t > GetRaw(std::span< const uint8_t > defaultValue) const
Gets the entry's value as a raw.
Definition: GenericEntry.inc:46
GenericSubscriber()=default
std::vector< double > GetDoubleArray(std::span< const double > defaultValue) const
Gets the entry's value as a double array.
Definition: GenericEntry.inc:66
std::string GetString(std::string_view defaultValue) const
Gets the entry's value as a string.
Definition: GenericEntry.inc:41
std::vector< std::string > GetStringArray(std::span< const std::string > defaultValue) const
Gets the entry's value as a string array.
Definition: GenericEntry.inc:71
std::vector< int64_t > GetIntegerArray(std::span< const int64_t > defaultValue) const
Gets the entry's value as a integer array.
Definition: GenericEntry.inc:56
bool GetBoolean(bool defaultValue) const
Gets the entry's value as a boolean.
Definition: GenericEntry.inc:25
NetworkTables publisher.
Definition: Topic.h:345
NetworkTables subscriber.
Definition: Topic.h:290
NT_Subscriber m_subHandle
Definition: Topic.h:341
NetworkTables Topic.
Definition: Topic.h:30
A network table entry value.
Definition: NetworkTableValue.h:27
basic_string_view< char > string_view
Definition: core.h:520
NT_Handle NT_Subscriber
Definition: ntcore_c.h:39
NT_Handle NT_Publisher
Definition: ntcore_c.h:40
NT_Handle NT_Entry
Definition: ntcore_c.h:33
::int64_t int64_t
Definition: Meta.h:59
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:35