Initial Pass at Attribute parsing

This commit is contained in:
Ethan Mahintorabi
2024-03-09 22:02:19 +00:00
parent 2cfbeb4672
commit 414e4e44aa
16 changed files with 5101 additions and 56 deletions
+13
View File
@@ -140,6 +140,7 @@ ConcreteCell::~ConcreteCell()
if (filename_)
stringDelete(filename_);
ports_.deleteContents();
attribute_map_.deleteArrayContents();
}
void
@@ -268,6 +269,18 @@ ConcreteCell::setIsLeaf(bool is_leaf)
is_leaf_ = is_leaf;
}
void
ConcreteCell::setAttribute(const char* key, const char* value)
{
attribute_map_.insert(key, stringCopy(value));
}
const char *
ConcreteCell::getAttribute(const char* key) const
{
return attribute_map_.findKey(key);
}
ConcretePort *
ConcreteCell::findPort(const char *name) const
{