SocketServer: Moved GetProperty command to new regime.

p4#: 21654
This commit is contained in:
Jacob Støren
2013-05-16 13:29:38 +02:00
parent 86a53980a4
commit bb0c4c37c1
2 changed files with 184 additions and 151 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ void getEclipseProperty(Matrix& propertyFrames, const QString &hostName, quint16
QString tmp = QString("riGetActiveCellProperty : Read %1").arg(propertyName);
if (caseName.isEmpty())
if (caseName == "-1")
{
tmp += QString(" from active case.");
}
@@ -141,7 +141,7 @@ DEFUN_DLD (riGetActiveCellProperty, args, nargout,
if (nargin > 1)
getEclipseProperty(propertyFrames, "127.0.0.1", 40001, args(0).char_matrix_value().row_as_string(0).c_str(), args(1).char_matrix_value().row_as_string(0).c_str());
else
getEclipseProperty(propertyFrames, "127.0.0.1", 40001, "", args(0).char_matrix_value().row_as_string(0).c_str());
getEclipseProperty(propertyFrames, "127.0.0.1", 40001, "-1", args(0).char_matrix_value().row_as_string(0).c_str());
return octave_value(propertyFrames);
}