WPILibC++
2018.4.1-20180921151738-1194-gf89274f
|
Functions | |
NT_Entry | nt::GetEntry (NT_Inst inst, const Twine &name) |
Get Entry Handle. More... | |
std::vector< NT_Entry > | nt::GetEntries (NT_Inst inst, const Twine &prefix, unsigned int types) |
Get Entry Handles. 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... | |
uint64_t | nt::GetEntryLastChange (NT_Entry entry) |
Gets the last time the entry was changed. More... | |
std::shared_ptr< Value > | nt::GetEntryValue (StringRef name) |
Get Entry Value. More... | |
std::shared_ptr< Value > | nt::GetEntryValue (NT_Entry entry) |
Get Entry Value. More... | |
bool | nt::SetDefaultEntryValue (StringRef name, std::shared_ptr< Value > value) |
Set Default Entry Value. More... | |
bool | nt::SetDefaultEntryValue (NT_Entry entry, std::shared_ptr< Value > value) |
Set Default Entry Value. More... | |
bool | nt::SetEntryValue (StringRef name, std::shared_ptr< Value > value) |
Set Entry Value. More... | |
bool | nt::SetEntryValue (NT_Entry entry, std::shared_ptr< Value > value) |
Set Entry Value. More... | |
void | nt::SetEntryTypeValue (StringRef name, std::shared_ptr< Value > value) |
Set Entry Type and Value. More... | |
void | nt::SetEntryTypeValue (NT_Entry entry, std::shared_ptr< Value > value) |
Set Entry Type and Value. More... | |
void | nt::SetEntryFlags (StringRef name, unsigned int flags) |
Set Entry Flags. More... | |
void | nt::SetEntryFlags (NT_Entry entry, unsigned int flags) |
Set Entry Flags. More... | |
unsigned int | nt::GetEntryFlags (StringRef name) |
Get Entry Flags. More... | |
unsigned int | nt::GetEntryFlags (NT_Entry entry) |
Get Entry Flags. More... | |
void | nt::DeleteEntry (StringRef name) |
Delete Entry. More... | |
void | nt::DeleteEntry (NT_Entry entry) |
Delete Entry. More... | |
void | nt::DeleteAllEntries () |
Delete All Entries. More... | |
void | nt::DeleteAllEntries (NT_Inst inst) |
Delete All Entries. More... | |
std::vector< EntryInfo > | nt::GetEntryInfo (StringRef prefix, unsigned int types) |
Get Entry Information. More... | |
std::vector< EntryInfo > | nt::GetEntryInfo (NT_Inst inst, const Twine &prefix, unsigned int types) |
Get Entry Information. More... | |
EntryInfo | nt::GetEntryInfo (NT_Entry entry) |
Get Entry Information. More... | |
void nt::DeleteAllEntries | ( | ) |
Delete All Entries.
Deletes ALL table entries. This is a new feature in version 3.0 of the so this may not have an effect if any other node in the network is not version 3.0 or newer.
Note: GetConnections() can be used to determine the protocol version of direct remote connection(s), but this is not sufficient to determine if all nodes in the network are version 3.0 or newer.
void nt::DeleteAllEntries | ( | NT_Inst | inst | ) |
Delete All Entries.
Deletes ALL table entries. This is a new feature in version 3.0 of the so this may not have an effect if any other node in the network is not version 3.0 or newer.
Note: GetConnections() can be used to determine the protocol version of direct remote connection(s), but this is not sufficient to determine if all nodes in the network are version 3.0 or newer.
inst | instance handle |
void nt::DeleteEntry | ( | StringRef | name | ) |
Delete Entry.
Deletes an entry. This is a new feature in version 3.0 of the protocol, so this may not have an effect if any other node in the network is not version 3.0 or newer.
Note: GetConnections() can be used to determine the protocol version of direct remote connection(s), but this is not sufficient to determine if all nodes in the network are version 3.0 or newer.
name | entry name (UTF-8 string) |
void nt::DeleteEntry | ( | NT_Entry | entry | ) |
Delete Entry.
Deletes an entry. This is a new feature in version 3.0 of the protocol, so this may not have an effect if any other node in the network is not version 3.0 or newer.
Note: GetConnections() can be used to determine the protocol version of direct remote connection(s), but this is not sufficient to determine if all nodes in the network are version 3.0 or newer.
entry | entry handle |
std::vector<NT_Entry> nt::GetEntries | ( | NT_Inst | inst, |
const Twine & | prefix, | ||
unsigned int | types | ||
) |
Get Entry Handles.
Returns an array of entry handles. The results are optionally filtered by string prefix and entry type to only return a subset of all entries.
inst | instance handle |
prefix | entry name required prefix; only entries whose name starts with this string are returned |
types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
NT_Entry nt::GetEntry | ( | NT_Inst | inst, |
const Twine & | name | ||
) |
Get Entry Handle.
inst | instance handle |
name | entry name (UTF-8 string) |
unsigned int nt::GetEntryFlags | ( | StringRef | name | ) |
Get Entry Flags.
name | entry name (UTF-8 string) |
unsigned int nt::GetEntryFlags | ( | NT_Entry | entry | ) |
Get Entry Flags.
entry | entry handle |
std::vector<EntryInfo> nt::GetEntryInfo | ( | StringRef | prefix, |
unsigned int | types | ||
) |
Get Entry Information.
Returns an array of entry information (name, entry type, and timestamp of last change to type/value). The results are optionally filtered by string prefix and entry type to only return a subset of all entries.
prefix | entry name required prefix; only entries whose name starts with this string are returned |
types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
std::vector<EntryInfo> nt::GetEntryInfo | ( | NT_Inst | inst, |
const Twine & | prefix, | ||
unsigned int | types | ||
) |
Get Entry Information.
Returns an array of entry information (name, entry type, and timestamp of last change to type/value). The results are optionally filtered by string prefix and entry type to only return a subset of all entries.
prefix | entry name required prefix; only entries whose name starts with this string are returned |
types | bitmask of NT_Type values; 0 is treated specially as a "don't care" |
inst | instance handle |
EntryInfo nt::GetEntryInfo | ( | NT_Entry | entry | ) |
Get Entry Information.
Returns information about an entry (name, entry type, and timestamp of last change to type/value).
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 |
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 |
NT_Type nt::GetEntryType | ( | NT_Entry | entry | ) |
Gets the type for the specified entry, or unassigned if non existent.
entry | entry handle |
std::shared_ptr<Value> nt::GetEntryValue | ( | StringRef | name | ) |
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
name | entry name (UTF-8 string) |
std::shared_ptr<Value> nt::GetEntryValue | ( | NT_Entry | entry | ) |
Get Entry Value.
Returns copy of current entry value. Note that one of the type options is "unassigned".
entry | entry handle |
bool nt::SetDefaultEntryValue | ( | StringRef | name, |
std::shared_ptr< Value > | value | ||
) |
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".
name | entry name (UTF-8 string) |
value | value to be set if name does not exist |
bool nt::SetDefaultEntryValue | ( | NT_Entry | entry, |
std::shared_ptr< Value > | value | ||
) |
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 | ( | StringRef | name, |
unsigned int | flags | ||
) |
Set Entry Flags.
name | entry name (UTF-8 string) |
flags | flags value (bitmask of NT_EntryFlags) |
void nt::SetEntryFlags | ( | NT_Entry | entry, |
unsigned int | flags | ||
) |
Set Entry Flags.
entry | entry handle |
flags | flags value (bitmask of NT_EntryFlags) |
void nt::SetEntryTypeValue | ( | StringRef | name, |
std::shared_ptr< Value > | value | ||
) |
Set Entry Type and Value.
Sets new entry value. If type of new value differs from the type of the currently stored entry, the currently stored entry type is overridden (generally this will generate an Entry Assignment message).
This is NOT the preferred method to update a value; generally SetEntryValue() should be used instead, with appropriate error handling.
name | entry name (UTF-8 string) |
value | new entry value |
void nt::SetEntryTypeValue | ( | NT_Entry | entry, |
std::shared_ptr< Value > | value | ||
) |
Set Entry Type and Value.
Sets new entry value. If type of new value differs from the type of the currently stored entry, the currently stored entry type is overridden (generally this will generate an Entry Assignment message).
This is NOT the preferred method to update a value; generally SetEntryValue() should be used instead, with appropriate error handling.
entry | entry handle |
value | new entry value |
bool nt::SetEntryValue | ( | StringRef | name, |
std::shared_ptr< 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.
name | entry name (UTF-8 string) |
value | new entry value |
bool nt::SetEntryValue | ( | NT_Entry | entry, |
std::shared_ptr< 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.
entry | entry handle |
value | new entry value |