WPILibC++
2019.1.1-beta-4-11-ga7f4e29
|
Functions | |
const char * | nt::SavePersistent (StringRef filename) |
Save persistent values to a file. More... | |
const char * | nt::SavePersistent (NT_Inst inst, const Twine &filename) |
Save persistent values to a file. More... | |
const char * | nt::LoadPersistent (StringRef filename, std::function< void(size_t line, const char *msg)> warn) |
Load persistent values from a file. More... | |
const char * | nt::LoadPersistent (NT_Inst inst, const Twine &filename, std::function< void(size_t line, const char *msg)> warn) |
const char * | nt::SaveEntries (NT_Inst inst, const Twine &filename, const Twine &prefix) |
Save table values to a file. More... | |
const char * | nt::LoadEntries (NT_Inst inst, const Twine &filename, const Twine &prefix, std::function< void(size_t line, const char *msg)> warn) |
Load table values from a file. More... | |
const char* nt::LoadEntries | ( | NT_Inst | inst, |
const Twine & | filename, | ||
const Twine & | prefix, | ||
std::function< 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 |
warn | callback function for warnings |
const char* nt::LoadPersistent | ( | StringRef | filename, |
std::function< 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.
filename | filename |
warn | callback function for warnings |
const char* nt::LoadPersistent | ( | NT_Inst | inst, |
const Twine & | filename, | ||
std::function< void(size_t line, const char *msg)> | warn | ||
) |
inst | instance handle |
const char* nt::SaveEntries | ( | NT_Inst | inst, |
const Twine & | filename, | ||
const Twine & | prefix | ||
) |
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 |
const char* nt::SavePersistent | ( | StringRef | 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.
filename | filename |
const char* nt::SavePersistent | ( | NT_Inst | inst, |
const Twine & | 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.
filename | filename |
inst | instance handle |