Add ITable/NetworkTable GetKeys and GetSubTables accessors.

This commit is contained in:
Peter Johnson
2015-09-16 00:50:31 -07:00
parent 6cbc219427
commit c5d456f3a6
7 changed files with 141 additions and 8 deletions

View File

@@ -146,6 +146,17 @@ class NetworkTable : public ITable {
bool ContainsSubTable(llvm::StringRef key) const;
/**
* @param types bitmask of types; 0 is treated as a "don't care".
* @return keys currently in the table
*/
std::vector<std::string> GetKeys(int types = 0) const;
/**
* @return subtables currently in the table
*/
std::vector<std::string> GetSubTables() const;
/**
* Makes a key's value persistent through program restarts.
*