BasePVStructure now complete

This commit is contained in:
Marty Kraimer
2010-10-26 06:12:44 -04:00
parent a4cb4258a9
commit 59eeadcd10
6 changed files with 393 additions and 41 deletions

View File

@@ -3122,7 +3122,6 @@ void convertStructure(StringBuilder buffer,PVStructure *data,int indentLevel)
{
convert->newLine(buffer, indentLevel);
*buffer += "structure {";
char buff[30];
PVFieldPtrArray fieldsData = data->getPVFields();
if (fieldsData != 0) {
int length = data->getStructure()->getNumberFields();
@@ -3130,6 +3129,8 @@ void convertStructure(StringBuilder buffer,PVStructure *data,int indentLevel)
PVField *fieldField = fieldsData[i];
FieldConstPtr fieldnow = fieldField->getField();
convert->newLine(buffer, indentLevel + 1);
int size = fieldnow->getFieldName().length();
char buff[size+2];
sprintf(buff,"%s = ",fieldnow->getFieldName().c_str());
*buffer += buff;
convert->getString(buffer,fieldField,indentLevel + 1);