std::string GPortModel::getStatusText()
{
- std::string temp = "Name:";
+ std::string temp = "";
temp+=_bbtkName;
- temp+=" Type:";
- temp+=_bbtkType;
- temp+=" Box:";
- temp+=_parentBox->getBBTKType();
- if(_portType==GOUTPUTPORT)
- {
- temp+=" [Output Port]";
- }
- else if(_portType==GINPUTPORT)
+ if(isValueSet())
{
- if(isValueSet())
- {
- temp+=" Value:";
- temp+=_value;
- }
- temp+=" [Input Port]";
+ temp+="(";
+ temp+=_value;
+ temp+=")";
}
+ temp+=" ";
+ temp+=_bbtkType;
return temp;
}