Change metadata format to dotfile, make certain entries metadata (#666)

Sendable's "Name" is now ".name"
Sendable's "Subsystem" is now ".subsystem"
Command's "name" is now ".name"
Command's "isParented" is now ".isParented"
This commit is contained in:
Sam Carlberg
2017-10-11 23:27:49 -04:00
committed by Peter Johnson
parent ba3a85d0cc
commit f0cc623241
8 changed files with 17 additions and 17 deletions

View File

@@ -127,7 +127,7 @@ void SmartDashboard::PutData(llvm::StringRef key, Sendable* data) {
return;
}
std::shared_ptr<nt::NetworkTable> dataTable(s_table->GetSubTable(key));
dataTable->GetEntry("~TYPE~").SetString(data->GetSmartDashboardType());
dataTable->GetEntry(".type").SetString(data->GetSmartDashboardType());
data->InitTable(dataTable);
s_tablesToData[dataTable] = data;
}