mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
81 lines
2.9 KiB
C++
81 lines
2.9 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2011-2012 Statoil ASA, Ceetron AS
|
|
//
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "../ApplicationLibCode/SocketInterface/RiaSocketServerDefines.h"
|
|
|
|
namespace riOctavePlugin
|
|
{
|
|
const int connectTimeOutMilliSecs = 5000;
|
|
const int shortTimeOutMilliSecs = 1000;
|
|
const int longTimeOutMilliSecs = 6000000;
|
|
|
|
const int socketMaxByteCount = 100000;
|
|
|
|
// Octave data structure : CaseInfo
|
|
char caseInfo_CaseId[] = "CaseId";
|
|
char caseInfo_CaseName[] = "CaseName";
|
|
char caseInfo_CaseType[] = "CaseType";
|
|
char caseInfo_CaseGroupId[] = "CaseGroupId";
|
|
|
|
// Octave data structure: PropertyInfo
|
|
char propertyInfo_PropName[] = "PropName";
|
|
char propertyInfo_PropType[] = "PropType";
|
|
|
|
// Octave data structure: WellStatus
|
|
char wellStatus_WellType[] = "WellType";
|
|
char wellStatus_WellStatus[] = "WellStatus";
|
|
|
|
// Octave data structure : CaseGroupInfo
|
|
char caseGroupInfo_CaseGroupId[] = "CaseGroupId";
|
|
char caseGroupInfo_CaseGroupName[] = "CaseGroupName";
|
|
|
|
// Octave data structure : WellCellInfo
|
|
char wellCellInfo_I[] = "I";
|
|
char wellCellInfo_J[] = "J";
|
|
char wellCellInfo_K[] = "K";
|
|
char wellCellInfo_GridIndex [] = "GridIndex";
|
|
char wellCellInfo_CellStatus[] = "CellStatus";
|
|
char wellCellInfo_BranchId[] = "BranchId";
|
|
char wellCellInfo_SegmentId[] = "SegmentId";
|
|
|
|
// Octave data structure : TimeStepDate
|
|
char timeStepDate_Year[] = "Year";
|
|
char timeStepDate_Month[] = "Month";
|
|
char timeStepDate_Day[] = "Day";
|
|
char timeStepDate_Hour[] = "Hour";
|
|
char timeStepDate_Minute[] = "Minute";
|
|
char timeStepDate_Second[] = "Second";
|
|
|
|
// Octave data structure : CellIndex
|
|
char cellIndex_gridIndex[] = "GridIndex";
|
|
char cellIndex_I[] = "I";
|
|
char cellIndex_J[] = "J";
|
|
char cellIndex_K[] = "K";
|
|
|
|
bool isOctaveValueNumeric(const octave_value& value)
|
|
{
|
|
#if (OCTAVE_MAJOR_VERSION > 4 || (OCTAVE_MAJOR_VERSION == 4 && OCTAVE_MINOR_VERSION >= 4))
|
|
return value.isnumeric();
|
|
#else
|
|
return value.is_numeric_type();
|
|
#endif
|
|
}
|
|
|
|
}
|
|
|