WPILibC++  2018.4.1-20180819203220-1159-g83cfb8b
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages

Functions

NT_Bool NT_SetDefaultEntryBoolean (NT_Entry entry, uint64_t time, NT_Bool default_boolean)
 Set Default Entry Boolean. More...
 
NT_Bool NT_SetDefaultEntryDouble (NT_Entry entry, uint64_t time, double default_double)
 Set Default Entry Double. More...
 
NT_Bool NT_SetDefaultEntryString (NT_Entry entry, uint64_t time, const char *default_value, size_t default_len)
 Set Default Entry String. More...
 
NT_Bool NT_SetDefaultEntryRaw (NT_Entry entry, uint64_t time, const char *default_value, size_t default_len)
 Set Default Entry Raw. More...
 
NT_Bool NT_SetDefaultEntryBooleanArray (NT_Entry entry, uint64_t time, const int *default_value, size_t default_size)
 Set Default Entry Boolean Array. More...
 
NT_Bool NT_SetDefaultEntryDoubleArray (NT_Entry entry, uint64_t time, const double *default_value, size_t default_size)
 Set Default Entry Double Array. More...
 
NT_Bool NT_SetDefaultEntryStringArray (NT_Entry entry, uint64_t time, const struct NT_String *default_value, size_t default_size)
 Set Default Entry String Array. More...
 

Detailed Description

Function Documentation

NT_Bool NT_SetDefaultEntryBoolean ( NT_Entry  entry,
uint64_t  time,
NT_Bool  default_boolean 
)

Set Default Entry Boolean.

Sets the default for the specified key to be a boolean. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_booleanvalue to be set if name does not exist
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryBooleanArray ( NT_Entry  entry,
uint64_t  time,
const int *  default_value,
size_t  default_size 
)

Set Default Entry Boolean Array.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_valuevalue to be set if name does not exist
default_sizesize of value array
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryDouble ( NT_Entry  entry,
uint64_t  time,
double  default_double 
)

Set Default Entry Double.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_doublevalue to be set if name does not exist
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryDoubleArray ( NT_Entry  entry,
uint64_t  time,
const double *  default_value,
size_t  default_size 
)

Set Default Entry Double Array.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_valuevalue to be set if name does not exist
default_sizesize of value array
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryRaw ( NT_Entry  entry,
uint64_t  time,
const char *  default_value,
size_t  default_len 
)

Set Default Entry Raw.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_valuevalue to be set if name does not exist
default_lenlength of value array
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryString ( NT_Entry  entry,
uint64_t  time,
const char *  default_value,
size_t  default_len 
)

Set Default Entry String.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_valuevalue to be set if name does not exist
default_lenlength of value
Returns
0 on error (value not set), 1 on success
NT_Bool NT_SetDefaultEntryStringArray ( NT_Entry  entry,
uint64_t  time,
const struct NT_String default_value,
size_t  default_size 
)

Set Default Entry String Array.

Sets the default for the specified key. If key exists with same type, does not set value. Otherwise sets value to the default.

Parameters
entryentry handle
timetimestamp
default_valuevalue to be set if name does not exist
default_sizesize of value array
Returns
0 on error (value not set), 1 on success