From 2560fcf1fa85c3851e7e11fd850baaa66d2b2de5 Mon Sep 17 00:00:00 2001 From: bri Date: Mon, 10 Feb 2014 17:52:32 +0400 Subject: [PATCH] First preliminary version --- CMakeLists.txt | 5 + scripts/README | 30 + ...OME_CVS_checkout_branch_BR_siman_phase1.sh | 85 ++ scripts/build.csh | 463 ++++++ scripts/build.sh | 475 ++++++ scripts/env_build.csh | 815 +++++++++++ scripts/env_build.sh | 786 ++++++++++ scripts/env_products.csh | 815 +++++++++++ scripts/env_products.sh | 793 ++++++++++ scripts/env_siman.sh | 33 + scripts/run_salome_siman.sh | 59 + scripts/siman_build.sh | 21 + src/CMakeLists.txt | 19 + src/CheckIn.cpp | 649 +++++++++ src/CheckIn.h | 258 ++++ src/CheckInResponse.cpp | 422 ++++++ src/CheckInResponse.h | 204 +++ src/CreateConfigFile.cpp | 867 +++++++++++ src/CreateConfigFile.h | 309 ++++ src/CreateConfigFileResponse.cpp | 422 ++++++ src/CreateConfigFileResponse.h | 204 +++ src/GetFile.cpp | 422 ++++++ src/GetFile.h | 204 +++ src/GetFileResponse.cpp | 449 ++++++ src/GetFileResponse.h | 206 +++ src/ISimanSalomeServiceCallback.h | 137 ++ src/PutFile.cpp | 912 ++++++++++++ src/PutFile.h | 317 ++++ src/PutFileResponse.cpp | 422 ++++++ src/PutFileResponse.h | 204 +++ src/SimanIO_Activity.cxx | 78 + src/SimanIO_Activity.hxx | 88 ++ src/SimanIO_Configuration.cxx | 249 ++++ src/SimanIO_Configuration.hxx | 77 + src/SimanIO_Document.cxx | 89 ++ src/SimanIO_Document.hxx | 100 ++ src/SimanIO_Link.cxx | 304 ++++ src/SimanIO_Link.hxx | 42 + src/SimanSalomeServiceStub.cpp | 1273 +++++++++++++++++ src/SimanSalomeServiceStub.h | 206 +++ src/TestCreateConfigFile.cpp | 168 +++ src/old_CMakeLists.txt | 10 + src/old_SimanIO_Configuration.cxx | 239 ++++ 43 files changed, 13930 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 scripts/README create mode 100644 scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh create mode 100644 scripts/build.csh create mode 100644 scripts/build.sh create mode 100644 scripts/env_build.csh create mode 100644 scripts/env_build.sh create mode 100644 scripts/env_products.csh create mode 100644 scripts/env_products.sh create mode 100644 scripts/env_siman.sh create mode 100644 scripts/run_salome_siman.sh create mode 100644 scripts/siman_build.sh create mode 100644 src/CMakeLists.txt create mode 100644 src/CheckIn.cpp create mode 100644 src/CheckIn.h create mode 100644 src/CheckInResponse.cpp create mode 100644 src/CheckInResponse.h create mode 100644 src/CreateConfigFile.cpp create mode 100644 src/CreateConfigFile.h create mode 100644 src/CreateConfigFileResponse.cpp create mode 100644 src/CreateConfigFileResponse.h create mode 100644 src/GetFile.cpp create mode 100644 src/GetFile.h create mode 100644 src/GetFileResponse.cpp create mode 100644 src/GetFileResponse.h create mode 100644 src/ISimanSalomeServiceCallback.h create mode 100644 src/PutFile.cpp create mode 100644 src/PutFile.h create mode 100644 src/PutFileResponse.cpp create mode 100644 src/PutFileResponse.h create mode 100644 src/SimanIO_Activity.cxx create mode 100644 src/SimanIO_Activity.hxx create mode 100644 src/SimanIO_Configuration.cxx create mode 100644 src/SimanIO_Configuration.hxx create mode 100644 src/SimanIO_Document.cxx create mode 100644 src/SimanIO_Document.hxx create mode 100644 src/SimanIO_Link.cxx create mode 100644 src/SimanIO_Link.hxx create mode 100644 src/SimanSalomeServiceStub.cpp create mode 100644 src/SimanSalomeServiceStub.h create mode 100644 src/TestCreateConfigFile.cpp create mode 100644 src/old_CMakeLists.txt create mode 100644 src/old_SimanIO_Configuration.cxx diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..58f7a66 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +project(SimanIO) +cmake_minimum_required(VERSION 2.4) +add_subdirectory(src lib) + + diff --git a/scripts/README b/scripts/README new file mode 100644 index 0000000..16702b7 --- /dev/null +++ b/scripts/README @@ -0,0 +1,30 @@ +How prepare runnable SALOME-SIMAN code + +1. Use standard SALOME 6.5.0 disctibutive for installation. + +2. Take from CVS SALOME-SIMAN code for branch "BR_siman_phase1" based on SALOME 6.5.0 + +startinmg from SIMAN repository like : +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN checkout -r BR_siman_phase1 SIMANIO_SRC + +Move the required product wso2-wsf-cpp-2.1.0 and all scripts to SALOME root directory +Adjust the scripts if necessary + +Take from CVS other modules like it is done in SALOME_CVS_checkout_branch_BR_siman_phase1.sh +"KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN PYHELLO" + +3. Build all modules starting from SIMANIO_SRC using the scripts + +4. Check runnability of Salome + +5. Define (export) the environment variable SALOME_ROOT_DIR pointing to the directory there SALOME and scripts are build. +in .bashrc file + +6. If necessary run SIMAN application servers +/usr/share/tomcat6/bin/startup.sh +to stop use +/usr/share/tomcat6/bin/shutdown.sh + +In the file env_siman.sh adjust SIMAN_WS_HOST variable to point to SIMAN application server + + diff --git a/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh b/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh new file mode 100644 index 0000000..c6f206d --- /dev/null +++ b/scripts/SALOME_CVS_checkout_branch_BR_siman_phase1.sh @@ -0,0 +1,85 @@ +#!/bin/bash + +# Move *_6.5.0 to some dir, say _6.5.0_origin +#mkdir _6.5.0_origin + +#for i in *_6.5.0; do +# if [ -d $i ]; then +# echo $i +# mv $i _6.5.0_origin +# fi +#done + +# or remove *_6.5.0 +# rm -Rf *_6.5.0 + + +# Check out SALOME-SIMAN code from the branch BR_siman_phase1 +# and rename *_SRC to *SRC_6.5.0 to reuse 6.5.0 env, build and product scripts + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/KERNEL login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/KERNEL checkout -r BR_siman_phase1 KERNEL_SRC +mv KERNEL_SRC KERNEL_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GUI login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GUI checkout -r BR_siman_phase1 GUI_SRC +mv GUI_SRC GUI_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GEOM login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GEOM checkout -r BR_siman_phase1 GEOM_SRC +mv GEOM_SRC GEOM_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/MED login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/MED checkout -r BR_siman_phase1 MED_SRC +mv MED_SRC MED_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SMESH login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SMESH checkout -r BR_siman_phase1 SMESH_SRC +mv SMESH_SRC SMESH_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES checkout -r BR_siman_phase1 PYHELLO1_SRC +mv PYHELLO1_SRC PYHELLO_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/VISU login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/VISU checkout -r BR_siman_phase1 VISU_SRC +mv VISU_SRC VISU_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/PARAVIS login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/PARAVIS checkout -r BR_siman_phase1 PARAVIS_SRC +mv PARAVIS_SRC PARAVIS_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/YACS login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/YACS checkout -r BR_siman_phase1 YACS_SRC +mv YACS_SRC YACS_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/NETGENPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/NETGENPLUGIN checkout -r BR_siman_phase1 NETGENPLUGIN_SRC +mv NETGENPLUGIN_SRC NETGENPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPLUGIN checkout -r BR_siman_phase1 GHS3DPLUGIN_SRC +mv GHS3DPLUGIN_SRC GHS3DPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPRLPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/GHS3DPRLPLUGIN checkout -r BR_siman_phase1 GHS3DPRLPLUGIN_SRC +mv GHS3DPRLPLUGIN_SRC GHS3DPRLPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/BLSURFPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/BLSURFPLUGIN checkout -r BR_siman_phase1 BLSURFPLUGIN_SRC +mv BLSURFPLUGIN_SRC BLSURFPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/HEXOTICPLUGIN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/HEXOTICPLUGIN checkout -r BR_siman_phase1 HexoticPLUGIN_SRC +mv HexoticPLUGIN_SRC HexoticPLUGIN_SRC_6.5.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/EXAMPLES checkout -r BR_siman_phase1 SAMPLES_SRC +mv SAMPLES_SRC SAMPLES_SRC_6.5.0 + + +# Check out SALOME-SIMAN SIMANIO_SRC, the scripts and the required product wso2-wsf-cpp-2.1.0 + +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN login +cvs -d :pserver:bri@cvs.opencascade.com:/home/server/cvs/SIMAN checkout -r BR_siman_phase1 SIMANIO_SRC + diff --git a/scripts/build.csh b/scripts/build.csh new file mode 100644 index 0000000..8eb0a32 --- /dev/null +++ b/scripts/build.csh @@ -0,0 +1,463 @@ +#!/bin/csh -f + +#################################################################################### +# File : build.csh +# Created : Thu Jan 27 09:50:55 2005 +# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +# Project : SALOME +# Module : Installation Wizard +# Copyright : 2002-2012 CEA +# +# This script is the part of the SALOME installation procedure. +# +# This script can be used to build and install SALOME modules from sources. +# Try build.csh -h for more details about usage. +# +#################################################################################### + +set is_build_configure=0 +set is_configure=0 +set inst_with_gui=1 +set is_delete=0 +set verbose_level=2 +set params="" +set modules=(KERNEL GUI GEOM MED SMESH VISU PARAVIS YACS NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT PYLIGHT SIERPINSKY RANDOMIZER HEXABLOCK HEXABLOCKPLUGIN ATOMIC ATOMGEN ATOMSOLV HOMARD JOBMANAGER) +set optim="" +set is_install=1 +set is_help=0 +set is_tui=0 +set prefix="" +set def_install_dir="/INSTALL" +set b_params="" + +######################################################### +# parse parameters +######################################################### +while ( ${%1} > 0 ) + if ( "$1" == "-b" ) then + set is_build_configure=1 + set is_configure=1 + else if ( "$1" == "-c" ) then + set is_configure=1 + else if ( "$1" == "-w" ) then + set inst_with_gui=0 + else if ( "$1" == "-d" ) then + set is_delete=1 + else if ( "$1" == "-o" ) then + set optim="--enable-production=yes --disable-debug" + else if ( "$1" == "-v" ) then + shift + set verbose_level=$1 + else if ( "$1" == "-p" ) then + shift + set is_install=1 + set prefix=$1 + else if ( "$1" == "-h" ) then + set is_help=1 + else if ( "$1" == "-t" ) then + set is_tui=1 + else + set ckt=`echo ${modules} | grep -E "\<$1\>"` + if ( "$ckt" != "" ) then + set params="$params $1" + else + set b_params="$b_params $1" + echo "\!\!\! Warning \!\!\! Unknown module: $1." + endif + endif + shift +end + +######################################################### +# if -h option is given - print help info and exit +######################################################### +if ( $is_help == 1 ) then +echo "" +echo "" +echo "Description:" +echo " Builds given SALOME modules by performing make and make install commands" +echo "" +echo "Usage:" +echo " build.csh [