WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
Table Functions

Functions

NT_Entry wpi::nt::GetEntry (NT_Inst inst, std::string_view name)
 Get Entry Handle.
std::string wpi::nt::GetEntryName (NT_Entry entry)
 Gets the name of the specified entry.
NT_Type wpi::nt::GetEntryType (NT_Entry entry)
 Gets the type for the specified entry, or unassigned if non existent.
int64_t wpi::nt::GetEntryLastChange (NT_Handle subentry)
 Gets the last time the entry was changed.
Value wpi::nt::GetEntryValue (NT_Handle subentry)
 Get Entry Value.
bool wpi::nt::SetDefaultEntryValue (NT_Entry entry, const Value &value)
 Set Default Entry Value.
bool wpi::nt::SetEntryValue (NT_Entry entry, const Value &value)
 Set Entry Value.
void wpi::nt::SetEntryFlags (NT_Entry entry, unsigned int flags)
 Set Entry Flags.
unsigned int wpi::nt::GetEntryFlags (NT_Entry entry)
 Get Entry Flags.
std::vector< Valuewpi::nt::ReadQueueValue (NT_Handle subentry)
 Read Entry Queue.
std::vector< Valuewpi::nt::ReadQueueValue (NT_Handle subentry, unsigned int types)
 Read Entry Queue.

Detailed Description

Function Documentation

◆ GetEntry()

NT_Entry wpi::nt::GetEntry ( NT_Inst inst,
std::string_view name )

Get Entry Handle.

Parameters
instinstance handle
nameentry name (UTF-8 string)
Returns
entry handle

◆ GetEntryFlags()

unsigned int wpi::nt::GetEntryFlags ( NT_Entry entry)

Get Entry Flags.

Parameters
entryentry handle
Returns
Flags value (bitmask of NT_EntryFlags)

◆ GetEntryLastChange()

int64_t wpi::nt::GetEntryLastChange ( NT_Handle subentry)

Gets the last time the entry was changed.

Returns 0 if the handle is invalid.

Parameters
subentrysubscriber or entry handle
Returns
Entry last change time

◆ GetEntryName()

std::string wpi::nt::GetEntryName ( NT_Entry entry)

Gets the name of the specified entry.

Returns an empty string if the handle is invalid.

Parameters
entryentry handle
Returns
Entry name

◆ GetEntryType()

NT_Type wpi::nt::GetEntryType ( NT_Entry entry)

Gets the type for the specified entry, or unassigned if non existent.

Parameters
entryentry handle
Returns
Entry type

◆ GetEntryValue()

Value wpi::nt::GetEntryValue ( NT_Handle subentry)

Get Entry Value.

Returns copy of current entry value. Note that one of the type options is "unassigned".

Parameters
subentrysubscriber or entry handle
Returns
entry value

◆ ReadQueueValue() [1/2]

std::vector< Value > wpi::nt::ReadQueueValue ( NT_Handle subentry)

Read Entry Queue.

Returns new entry values since last call.

Parameters
subentrysubscriber or entry handle
Returns
entry value array

◆ ReadQueueValue() [2/2]

std::vector< Value > wpi::nt::ReadQueueValue ( NT_Handle subentry,
unsigned int types )

Read Entry Queue.

Returns new entry values since last call.

Parameters
subentrysubscriber or entry handle
typesbitmask of NT_Type values; 0 is treated specially as a "don't care"
Returns
entry value array

◆ SetDefaultEntryValue()

bool wpi::nt::SetDefaultEntryValue ( NT_Entry entry,
const Value & value )

Set Default Entry Value.

Returns False if name exists. Otherwise, sets passed in value, and returns True. Note that one of the type options is "unassigned".

Parameters
entryentry handle
valuevalue to be set if name does not exist
Returns
False on error (value not set), True on success

◆ SetEntryFlags()

void wpi::nt::SetEntryFlags ( NT_Entry entry,
unsigned int flags )

Set Entry Flags.

Parameters
entryentry handle
flagsflags value (bitmask of NT_EntryFlags)

◆ SetEntryValue()

bool wpi::nt::SetEntryValue ( NT_Entry entry,
const Value & value )

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.

Parameters
entryentry handle
valuenew entry value
Returns
False on error (type mismatch), True on success