WPILibC++ 2023.4.3-108-ge5452e3
|
Functions | |
NT_Entry | nt::GetEntry (NT_Inst inst, std::string_view name) |
Get Entry Handle. More... | |
std::string | nt::GetEntryName (NT_Entry entry) |
Gets the name of the specified entry. More... | |
NT_Type | nt::GetEntryType (NT_Entry entry) |
Gets the type for the specified entry, or unassigned if non existent. More... | |
int64_t | nt::GetEntryLastChange (NT_Handle subentry) |
Gets the last time the entry was changed. More... | |
Value | nt::GetEntryValue (NT_Handle subentry) |
Get Entry Value. More... | |
bool | nt::SetDefaultEntryValue (NT_Entry entry, const Value &value) |
Set Default Entry Value. More... | |
bool | nt::SetEntryValue (NT_Entry entry, const Value &value) |
Set Entry Value. More... | |
void | nt::SetEntryFlags (NT_Entry entry, unsigned int flags) |
Set Entry Flags. More... | |
unsigned int | nt::GetEntryFlags (NT_Entry entry) |
Get Entry Flags. More... | |
std::vector< Value > | nt::ReadQueueValue (NT_Handle subentry) |
Read Entry Queue. More... | |
NT_Entry nt::GetEntry | ( | NT_Inst | inst, |
std::string_view | 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 |
int64_t nt::GetEntryLastChange | ( | NT_Handle | subentry | ) |
Gets the last time the entry was changed.
Returns 0 if the handle is invalid.
subentry | subscriber or entry handle |
std::string nt::GetEntryName | ( | NT_Entry | entry | ) |
Gets the name of the specified entry.
Returns an empty string if the handle is invalid.
entry | entry handle |
Gets the type for the specified entry, 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".
subentry | subscriber or entry handle |
Read Entry Queue.
Returns new entry values since last call.
subentry | subscriber or entry handle |
Set Default Entry Value.
Returns copy of current entry value if it exists. Otherwise, sets passed in value, and returns set value. Note that one of the type options is "unassigned".
entry | entry handle |
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 |