|
WPILibC++
2020.3.2
|
Functions | |
| const char * | NT_SavePersistent (NT_Inst inst, const char *filename) |
| Save persistent values to a file. More... | |
| const char * | NT_LoadPersistent (NT_Inst inst, const char *filename, void(*warn)(size_t line, const char *msg)) |
| Load persistent values from a file. More... | |
| const char * | NT_SaveEntries (NT_Inst inst, const char *filename, const char *prefix, size_t prefix_len) |
| Save table values to a file. More... | |
| const char * | NT_LoadEntries (NT_Inst inst, const char *filename, const char *prefix, size_t prefix_len, void(*warn)(size_t line, const char *msg)) |
| Load table values from a file. More... | |
| const char* NT_LoadEntries | ( | NT_Inst | inst, |
| const char * | filename, | ||
| const char * | prefix, | ||
| size_t | prefix_len, | ||
| void(*)(size_t line, const char *msg) | warn | ||
| ) |
Load table values from a file.
The file format used is identical to that used for SavePersistent / LoadPersistent.
| inst | instance handle |
| filename | filename |
| prefix | load only keys starting with this prefix |
| prefix_len | length of prefix in bytes |
| warn | callback function for warnings |
| const char* NT_LoadPersistent | ( | NT_Inst | inst, |
| const char * | filename, | ||
| void(*)(size_t line, const char *msg) | warn | ||
| ) |
Load persistent values from a file.
The server automatically does this at startup, but this function provides a way to restore persistent values in the same format from a file at any time on either a client or a server.
| inst | instance handle |
| filename | filename |
| warn | callback function for warnings |
| const char* NT_SaveEntries | ( | NT_Inst | inst, |
| const char * | filename, | ||
| const char * | prefix, | ||
| size_t | prefix_len | ||
| ) |
Save table values to a file.
The file format used is identical to that used for SavePersistent.
| inst | instance handle |
| filename | filename |
| prefix | save only keys starting with this prefix |
| prefix_len | length of prefix in bytes |
| const char* NT_SavePersistent | ( | NT_Inst | inst, |
| const char * | filename | ||
| ) |
Save persistent values to a file.
The server automatically does this, but this function provides a way to save persistent values in the same format to a file on either a client or a server.
| inst | instance handle |
| filename | filename |