![]() |
WPILibC++ 2025.3.2
|
Functions | |
| NT_Entry | NT_GetEntry (NT_Inst inst, const struct WPI_String *name) |
| Get Entry Handle. | |
| void | NT_GetEntryName (NT_Entry entry, struct WPI_String *name) |
| Gets the name of the specified entry. | |
| enum NT_Type | NT_GetEntryType (NT_Entry entry) |
| Gets the type for the specified key, or unassigned if non existent. | |
| uint64_t | NT_GetEntryLastChange (NT_Entry entry) |
| Gets the last time the entry was changed. | |
| void | NT_GetEntryValue (NT_Entry entry, struct NT_Value *value) |
| Get Entry Value. | |
| void | NT_GetEntryValueType (NT_Entry entry, unsigned int types, struct NT_Value *value) |
| Get Entry Value. | |
| NT_Bool | NT_SetDefaultEntryValue (NT_Entry entry, const struct NT_Value *default_value) |
| Set Default Entry Value. | |
| NT_Bool | NT_SetEntryValue (NT_Entry entry, const struct NT_Value *value) |
| Set Entry Value. | |
| void | NT_SetEntryFlags (NT_Entry entry, unsigned int flags) |
| Set Entry Flags. | |
| unsigned int | NT_GetEntryFlags (NT_Entry entry) |
| Get Entry Flags. | |
| struct NT_Value * | NT_ReadQueueValue (NT_Handle subentry, size_t *count) |
| Read Entry Queue. | |
| struct NT_Value * | NT_ReadQueueValueType (NT_Handle subentry, unsigned int types, size_t *count) |
| Read Entry Queue. | |
| NT_Entry NT_GetEntry | ( | NT_Inst | inst, |
| const struct WPI_String * | name ) |
Get Entry Handle.
| inst | instance handle |
| name | entry name (UTF-8 string) |
| unsigned int NT_GetEntryFlags | ( | NT_Entry | entry | ) |
Get Entry Flags.
| entry | entry handle |
| uint64_t NT_GetEntryLastChange | ( | NT_Entry | entry | ) |
Gets the last time the entry was changed.
Returns 0 if the handle is invalid.
| entry | entry handle |
| void NT_GetEntryName | ( | NT_Entry | entry, |
| struct WPI_String * | name ) |
Gets the name of the specified entry.
Returns an empty string if the handle is invalid.
| entry | entry handle |
| name | entry name (output parameter) |
Gets the type for the specified key, or unassigned if non existent.
| entry | entry handle |
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
| entry | entry handle |
| value | storage for returned entry value |
It is the caller's responsibility to free value once it's no longer needed (the utility function NT_DisposeValue() is useful for this purpose).
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
| entry | entry handle |
| types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
| value | storage for returned entry value |
It is the caller's responsibility to free value once it's no longer needed (the utility function NT_DisposeValue() is useful for this purpose).
Read Entry Queue.
Returns new entry values since last call. The returned array must be freed using NT_DisposeValueArray().
| subentry | subscriber or entry handle |
| count | count of items in returned array (output) |
Read Entry Queue.
Returns new entry values since last call. The returned array must be freed using NT_DisposeValueArray().
| subentry | subscriber or entry handle |
| types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
| count | count of items in returned array (output) |
Set Default Entry Value.
Returns 0 if name exists. Otherwise, sets passed in value, and returns 1. Note that one of the type options is "unassigned".
| entry | entry handle |
| default_value | value to be set if name does not exist |
| void NT_SetEntryFlags | ( | NT_Entry | entry, |
| unsigned int | flags ) |
Set Entry Flags.
| entry | entry handle |
| flags | flags value (bitmask of NT_EntryFlags) |
Set Entry Value.
Sets new entry value. If type of new value differs from the type of the currently stored entry, returns error and does not update value.
| entry | entry handle |
| value | new entry value |