9 tsinfo(
"Created TSManager with lastTableID=%d, lastEntryID=%d",lastTableID,lastEntryID);
14 lastTableID = firstID-1;
16 tsinfo(
"Created TSManager with lastTableID=%d, lastEntryID=%d",lastTableID,lastEntryID);
21 auto* table =
new SymbolTable(++lastTableID, &lastEntryID);
22 symbolTableList.push_back(table);
23 tsinfo(
"Created new Table (0x%llx) with id=%d",(
unsigned long long)table,table->getId());
29 auto* table =
new SymbolTable(++lastTableID, &lastEntryID, tableName);
30 symbolTableList.push_back(table);
31 tsinfo(
"Created new Table (0x%llx) with id=%d, name=%s",(
unsigned long long)table,table->getId(),table->getTableName().c_str());
39 auto iter = symbolTableList.begin();
40 while (table ==
nullptr && iter!=symbolTableList.end() && (*iter)->getId()<=
id)
42 if((*iter)->getId() ==
id)
48#if TS_PRINT_MESSAGES_LEVEL == TS_LEVEL_DEBUG
51 tsinfo(
"Table with id=%d does not exist",
id);
55 tsinfo(
"Table with id=%d found at 0%llx",
id, (
unsigned long long)table);
65 auto iter = symbolTableList.begin();
66 while (table ==
nullptr && iter!=symbolTableList.end())
68 if((*iter)->getTableName() == tableName)
74#if TS_PRINT_MESSAGES_LEVEL >= TS_LEVEL_INFO
77 tsinfo(
"Table with name=%s does not exist", tableName.c_str());
81 tsinfo(
"Table with name=%s found at 0%llx", tableName.c_str(), (
unsigned long long)table);
92 tserror(
"Table with id=%d does not exist",
id);
95 symbolTableList.remove(table);
97 tsinfo(
"Table with id=%d successfully deleted",
id);
103 for(
auto table : symbolTableList)
111 Entry* entry =
nullptr;
112 for(
auto table : symbolTableList)
114 entry = table->getEntry(
id);
117 if(tableId!=
nullptr)
119 *tableId = table->
getId();
129 return symbolTableList;
SymbolTable * createNewTable()
std::list< SymbolTable * > & _getTablesStorage()
SymbolTable * searchTable(const std::string &tableName)
Entry * searchAllTablesForEntryWithId(int id, int *tableId=nullptr)
SymbolTable * getTable(int id)