mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 11:51:47 +02:00
Initial Pass at Attribute parsing
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user