Convert::getFullName becomes PVField::getFullName

Compatibility wrapper using current Convert API
Allow PVField::getFieldName to be inline'd
Avoid multiple resize and copy operations
on result String.
This commit is contained in:
Michael Davidsaver
2013-04-22 14:48:59 -04:00
parent 2f8c434429
commit 704007092c
4 changed files with 38 additions and 22 deletions

View File

@@ -421,21 +421,6 @@ Convert::Convert()
Convert::~Convert(){}
void Convert::getFullName(StringBuilder buf,PVFieldPtr const & pvField)
{
buf->empty();
*buf += pvField->getFieldName();
PVStructure *parent;
while((parent=pvField->getParent())!=0) {
parent = pvField->getParent();
String name = parent->getFieldName();
if(name.length()>0) {
buf->insert(0,".");
buf->insert(0,name);
}
}
}
bool Convert::equals(PVFieldPtr const &a,PVFieldPtr const &b)
{
return convertEquals(a.get(),b.get());