diff options
Diffstat (limited to 'tags/cpp-sca-20060405/samples')
64 files changed, 0 insertions, 2570 deletions
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Calculator.dsw b/tags/cpp-sca-20060405/samples/Calculator/Calculator.dsw deleted file mode 100644 index 7df3d3cbe8..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Calculator.dsw +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "CalculatorModule"=.\CalculatorModule\CalculatorModule.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "CalculatorSubsystem"=.\CalculatorSubsystem\CalculatorSubsystem.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Client"=.\Client\Client.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Calculator.ncb b/tags/cpp-sca-20060405/samples/Calculator/Calculator.ncb Binary files differdeleted file mode 100644 index fd603e4f04..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Calculator.ncb +++ /dev/null diff --git a/tags/cpp-sca-20060405/samples/Calculator/Calculator.opt b/tags/cpp-sca-20060405/samples/Calculator/Calculator.opt Binary files differdeleted file mode 100644 index c399feabb4..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Calculator.opt +++ /dev/null diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtbuild b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtbuild deleted file mode 100644 index ca7fa895f1..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtbuild +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?fileVersion 3.0.0?>
-
-<ManagedProjectBuildInfo>
-<project id="CalculatorModule.cdt.managedbuild.target.gnu.so.2115154574" name="Shared Library (Gnu)" projectType="cdt.managedbuild.target.gnu.so">
-<configuration artifactExtension="so" artifactName="CalculatorModule" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.so.debug.749943809" name="Debug" parent="cdt.managedbuild.config.gnu.so.debug">
-<toolChain id="cdt.managedbuild.toolchain.gnu.so.debug.747727954" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.so.debug">
-<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.compiler.so.debug.2096673794" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.so.debug"/>
-<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug.272459253" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.so.debug">
-<option id="gnu.cpp.compiler.option.preprocessor.def.1699183781" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
-<listOptionValue builtIn="false" value="_DEBUG"/>
-</option>
-<option id="gnu.cpp.compiler.option.include.paths.1309188567" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
-<listOptionValue builtIn="false" value="${SCA4CPP}/include"/>
-<listOptionValue builtIn="false" value="${SDO4CPP}/include"/>
-</option>
-</tool>
-<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.linker.so.debug.309707091" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.so.debug"/>
-<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.linker.so.debug.1238966465" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.so.debug">
-<option id="gnu.cpp.link.option.libs.554536483" superClass="gnu.cpp.link.option.libs" valueType="libs">
-<listOptionValue builtIn="false" value="tuscany_sca"/>
-</option>
-<option id="gnu.cpp.link.option.paths.711270620" superClass="gnu.cpp.link.option.paths" valueType="stringList">
-<listOptionValue builtIn="false" value="${SCA4CPP}/lib"/>
-</option>
-</tool>
-<tool command="as" id="cdt.managedbuild.tool.gnu.assembler.so.debug.994221440" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.so.debug"/>
-<macros/>
-</toolChain>
-</configuration>
-<configuration artifactExtension="so" artifactName="CalculatorModule" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.so.release.1783471752" name="Release" parent="cdt.managedbuild.config.gnu.so.release">
-<toolChain id="cdt.managedbuild.toolchain.gnu.so.release.1347709342" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.so.release">
-<tool id="cdt.managedbuild.tool.gnu.c.compiler.so.release.1942794586" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.so.release"/>
-<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.so.release.206824555" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.so.release"/>
-<tool id="cdt.managedbuild.tool.gnu.c.linker.so.release.1131565167" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.so.release"/>
-<tool id="cdt.managedbuild.tool.gnu.cpp.linker.so.release.194271566" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.so.release"/>
-<tool id="cdt.managedbuild.tool.gnu.assembler.so.release.1863016598" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.so.release"/>
-</toolChain>
-</configuration>
-<macros/>
-</project>
-</ManagedProjectBuildInfo>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtproject b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtproject deleted file mode 100644 index 48a12e6664..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.cdtproject +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse-cdt version="2.0"?>
-
-<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
-<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
-<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
-<extension id="org.eclipse.cdt.core.domsourceindexer" point="org.eclipse.cdt.core.CIndexer"/>
-<data>
-<item id="org.eclipse.cdt.core.pathentry">
-<pathentry kind="src" path=""/>
-<pathentry kind="out" path=""/>
-<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
-</item>
-</data>
-</cdtproject>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.project b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.project deleted file mode 100644 index fa611e47c3..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.project +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>CalculatorModule</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.cdt.core.cnature</nature> - <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> - <nature>org.eclipse.cdt.core.ccnature</nature> - </natures> -</projectDescription> diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.settings/org.eclipse.cdt.managedbuilder.core.prefs b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.settings/org.eclipse.cdt.managedbuilder.core.prefs deleted file mode 100644 index 415787c073..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/.settings/org.eclipse.cdt.managedbuilder.core.prefs +++ /dev/null @@ -1,6 +0,0 @@ -#Tue Dec 13 10:02:34 GMT 2005
-eclipse.preferences.version=1
-environment/buildEnvironmentInclude/cdt.managedbuild.config.gnu.so.debug.749943809=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="CPATH" operation\="remove"/>\n<variable name\="CPLUS_INCLUDE_PATH" operation\="remove"/>\n</environment>\n
-environment/buildEnvironmentLibrary/cdt.managedbuild.config.gnu.so.debug.749943809=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="LIBRARY_PATH" operation\="remove"/>\n</environment>\n
-environment/project=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
-environment/project/cdt.managedbuild.config.gnu.so.debug.749943809=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Calculator.h b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Calculator.h deleted file mode 100644 index 9284178d5f..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Calculator.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed under the Apache License, Version 2.0 (the "License"); you | -| may not use this file except in compliance with the License. You may | -| obtain a copy of the License at | -| http://www.apache.org/licenses/LICENSE-2.0 | -| | -| Unless required by applicable law or agreed to in writing, software | -| distributed under the License is distributed on an "AS IS" BASIS, | -| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | -| implied. See the License for the specific language governing | -| permissions and limitations under the License. | -+----------------------------------------------------------------------+ -*/ - -#ifndef CALCULATOR_H -#define CALCULATOR_H -class Calculator -{ -public: - virtual float add(float arg1, float arg2) = 0; - virtual float sub(float arg1, float arg2) = 0; - virtual float mul(float arg1, float arg2) = 0; - virtual float div(float arg1, float arg2) = 0; -}; - -#endif - - diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.componentType b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.componentType deleted file mode 100644 index 2033f431bb..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.componentType +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:xs="http://www.w3.org/2001/XMLSchema">
-
- <service name="CalculatorService">
- <interface.cpp header="Calculator.h">
- </interface.cpp>
- </service>
-
-</componentType>
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.cpp b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.cpp deleted file mode 100644 index 96bd363167..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed under the Apache License, Version 2.0 (the "License"); you | -| may not use this file except in compliance with the License. You may | -| obtain a copy of the License at | -| http://www.apache.org/licenses/LICENSE-2.0 | -| | -| Unless required by applicable law or agreed to in writing, software | -| distributed under the License is distributed on an "AS IS" BASIS, | -| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | -| implied. See the License for the specific language governing | -| permissions and limitations under the License. | -+----------------------------------------------------------------------+ -*/ - -#include "CalculatorImpl.h" - -CalculatorImpl::CalculatorImpl() -{ -} - -CalculatorImpl::~CalculatorImpl() -{ -} - -// Calculator interface -float CalculatorImpl::add(float arg1, float arg2) -{ - float result = arg1 + arg2; - return result; -} - -float CalculatorImpl::sub(float arg1, float arg2) -{ - float result = arg1 - arg2; - return result; -} - -float CalculatorImpl::mul(float arg1, float arg2) -{ - float result = arg1 * arg2; - return result; -} - -float CalculatorImpl::div(float arg1, float arg2) -{ - float result = arg1 / arg2; - return result; -} - - diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.h b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.h deleted file mode 100644 index 38570aae28..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorImpl.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed under the Apache License, Version 2.0 (the "License"); you | -| may not use this file except in compliance with the License. You may | -| obtain a copy of the License at | -| http://www.apache.org/licenses/LICENSE-2.0 | -| | -| Unless required by applicable law or agreed to in writing, software | -| distributed under the License is distributed on an "AS IS" BASIS, | -| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | -| implied. See the License for the specific language governing | -| permissions and limitations under the License. | -+----------------------------------------------------------------------+ -*/ - -#ifndef CALCULATORIMPL_H -#define CALCULATORIMPL_H - -#include "Calculator.h" - -class CalculatorImpl : public Calculator -{ -public: - CalculatorImpl(); - virtual ~CalculatorImpl(); - - // Calculator interface - virtual float add(float arg1, float arg2); - virtual float sub(float arg1, float arg2); - virtual float mul(float arg1, float arg2); - virtual float div(float arg1, float arg2); -}; - -#endif - diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.dsp b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.dsp deleted file mode 100644 index 43c6bfc044..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.dsp +++ /dev/null @@ -1,138 +0,0 @@ -# Microsoft Developer Studio Project File - Name="CalculatorModule" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=CalculatorModule - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "CalculatorModule.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "CalculatorModule.mak" CFG="CalculatorModule - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "CalculatorModule - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "CalculatorModule - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "CalculatorModule - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATORMODULE_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATORMODULE_EXPORTS" /YX /FD /c
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "NDEBUG"
-# ADD RSC /l 0x809 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-
-!ELSEIF "$(CFG)" == "CalculatorModule - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATORMODULE_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /I "$(SDO4CPP)/include" /I "$(SCA4CPP)/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATORMODULE_EXPORTS" /YX /FD /GZ /c
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x809 /d "_DEBUG"
-# ADD RSC /l 0x809 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /libpath:"$(SDO4CPP)/lib" /libpath:"$(SCA4CPP)/lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "CalculatorModule - Win32 Release"
-# Name "CalculatorModule - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\CalculatorImpl.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\CalculatorImpl_CalculatorService_Proxy.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\CalculatorImpl_CalculatorService_Wrapper.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\Calculator.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\CalculatorImpl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\CalculatorImpl_CalculatorService_Proxy.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\CalculatorImpl_CalculatorService_Wrapper.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;module;componentType;fragment"
-# Begin Source File
-
-SOURCE=.\CalculatorImpl.componentType
-# End Source File
-# Begin Source File
-
-SOURCE=.\sca.module
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.plg b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.plg deleted file mode 100644 index 33016bffaf..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/CalculatorModule.plg +++ /dev/null @@ -1,39 +0,0 @@ -<html>
-<body>
-<pre>
-<h1>Build Log</h1>
-<h3>
---------------------Configuration: CalculatorModule - Win32 Debug--------------------
-</h3>
-<h3>Command Lines</h3>
-Creating temporary file "C:\DOCUME~1\winadmin\LOCALS~1\Temp\RSP7D.tmp" with contents
-[
-/nologo /MDd /W3 /Gm /GX /ZI /I "D:\Development\tuscany\cpp\sdo/include" /I "D:\Development\tuscany\cpp\sca/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "CALCULATORMODULE_EXPORTS" /Fp"Debug/CalculatorModule.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
-"D:\Development\tuscany\cpp\sca\samples\Calculator\CalculatorModule\CalculatorImpl.cpp"
-"D:\Development\tuscany\cpp\sca\samples\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Proxy.cpp"
-"D:\Development\tuscany\cpp\sca\samples\Calculator\CalculatorModule\CalculatorImpl_CalculatorService_Wrapper.cpp"
-]
-Creating command line "cl.exe @C:\DOCUME~1\winadmin\LOCALS~1\Temp\RSP7D.tmp"
-Creating temporary file "C:\DOCUME~1\winadmin\LOCALS~1\Temp\RSP7E.tmp" with contents
-[
-kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib tuscany_sca.lib tuscany_sdo.lib /nologo /dll /incremental:yes /pdb:"Debug/CalculatorModule.pdb" /debug /machine:I386 /out:"Debug/CalculatorModule.dll" /implib:"Debug/CalculatorModule.lib" /pdbtype:sept /libpath:"D:\Development\tuscany\cpp\sdo/lib" /libpath:"D:\Development\tuscany\cpp\sca/lib"
-.\Debug\CalculatorImpl.obj
-.\Debug\CalculatorImpl_CalculatorService_Proxy.obj
-.\Debug\CalculatorImpl_CalculatorService_Wrapper.obj
-]
-Creating command line "link.exe @C:\DOCUME~1\winadmin\LOCALS~1\Temp\RSP7E.tmp"
-<h3>Output Window</h3>
-Compiling...
-CalculatorImpl.cpp
-CalculatorImpl_CalculatorService_Proxy.cpp
-CalculatorImpl_CalculatorService_Wrapper.cpp
-Linking...
- Creating library Debug/CalculatorModule.lib and object Debug/CalculatorModule.exp
-
-
-
-<h3>Results</h3>
-CalculatorModule.dll - 0 error(s), 0 warning(s)
-</pre>
-</body>
-</html>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/makefile b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/makefile deleted file mode 100644 index 1e7f19fce8..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/makefile +++ /dev/null @@ -1,43 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-ROOT := ..
-
--include $(ROOT)/makefile.init
-
-RM := rm -rf
-
-# All of the sources participating in the build are defined here
--include sources.mk
--include $(SUBDIRS:%=%/subdir.mk)
--include objects.mk
-ifneq ($(strip $(DEPS)),)
--include $(DEPS)
-endif
-
--include $(ROOT)/makefile.defs
-
-# Add inputs and outputs from these tool invocations to the build variables
-
-# All Target
-all: libCalculatorModule.so
-
-# Tool invocations
-libCalculatorModule.so: $(OBJS) $(USER_OBJS)
- @echo 'Building target: $@'
- @echo 'Invoking: GCC C++ Linker'
- @echo g++ -L${SCA4CPP}/lib -shared -olibCalculatorModule.so $(OBJS) $(USER_OBJS) $(LIBS)
- @g++ -L${SCA4CPP}/lib -shared -olibCalculatorModule.so $(OBJS) $(USER_OBJS) $(LIBS)
- @echo 'Finished building target: $@'
- @echo ' '
-
-# Other Targets
-clean:
- -$(RM) $(OBJS)$(DEPS)$(LIBRARIES) libCalculatorModule.so
- -@echo ' '
-
-.PHONY: all clean dependents
-.SECONDARY:
-
--include $(ROOT)/makefile.targets
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/objects.mk b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/objects.mk deleted file mode 100644 index fbdb88403a..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/objects.mk +++ /dev/null @@ -1,7 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-LIBS := -ltuscany_sca
-
-USER_OBJS :=
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/sources.mk b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/sources.mk deleted file mode 100644 index 8f0795952f..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/sources.mk +++ /dev/null @@ -1,20 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-C_UPPER_SRCS :=
-CPP_SRCS :=
-O_SRCS :=
-ASM_SRCS :=
-S_SRCS :=
-CXX_SRCS :=
-CC_SRCS :=
-OBJ_SRCS :=
-OBJS :=
-DEPS :=
-LIBRARIES :=
-
-# Every subdirectory with source files must be described here
-SUBDIRS := \
-. \
-
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/subdir.mk b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/subdir.mk deleted file mode 100644 index dd98e3ddc6..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/Debug/subdir.mk +++ /dev/null @@ -1,35 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-# Add inputs and outputs from these tool invocations to the build variables
-CPP_SRCS += \
-$(ROOT)/CalculatorImpl.cpp \
-$(ROOT)/CalculatorImpl_CalculatorService_Proxy.cpp \
-$(ROOT)/CalculatorImpl_CalculatorService_Wrapper.cpp
-
-OBJS += \
-./CalculatorImpl.o \
-./CalculatorImpl_CalculatorService_Proxy.o \
-./CalculatorImpl_CalculatorService_Wrapper.o
-
-DEPS += \
-${addprefix ./, \
-CalculatorImpl.d \
-CalculatorImpl_CalculatorService_Proxy.d \
-CalculatorImpl_CalculatorService_Wrapper.d \
-}
-
-
-# Each subdirectory must supply rules for building sources it contributes
-%.o: $(ROOT)/%.cpp
- @echo 'Building file: $<'
- @echo 'Invoking: GCC C++ Compiler'
- @echo g++ -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
- @g++ -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
- echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
- g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
- @echo 'Finished building: $<'
- @echo ' '
-
-
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module deleted file mode 100644 index c000e57411..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="CalculatorModule">
-
- <component name="CalculatorServiceComponent">
- <implementation.cpp dll="CalculatorModule.dll" header="CalculatorImpl.h"></implementation.cpp>
- <properties> </properties>
- <references> </references>
- </component>
-</module>
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module.lin b/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module.lin deleted file mode 100644 index 2298b5910f..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorModule/sca.module.lin +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- name="CalculatorModule">
-
- <component name="CalculatorServiceComponent">
- <implementation.cpp dll="libCalculatorModule.so" header="CalculatorImpl.h"></implementation.cpp>
- <properties> </properties>
- <references> </references>
- </component>
-</module>
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/CalculatorSubsystem.dsp b/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/CalculatorSubsystem.dsp deleted file mode 100644 index ed7ceef2a4..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/CalculatorSubsystem.dsp +++ /dev/null @@ -1,67 +0,0 @@ -# Microsoft Developer Studio Project File - Name="CalculatorSubsystem" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Generic Project" 0x010a
-
-CFG=CalculatorSubsystem - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "CalculatorSubsystem.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "CalculatorSubsystem.mak" CFG="CalculatorSubsystem - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "CalculatorSubsystem - Win32 Release" (based on "Win32 (x86) Generic Project")
-!MESSAGE "CalculatorSubsystem - Win32 Debug" (based on "Win32 (x86) Generic Project")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-MTL=midl.exe
-
-!IF "$(CFG)" == "CalculatorSubsystem - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-
-!ELSEIF "$(CFG)" == "CalculatorSubsystem - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Target_Dir ""
-
-!ENDIF
-
-# Begin Target
-
-# Name "CalculatorSubsystem - Win32 Release"
-# Name "CalculatorSubsystem - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\sca.subsystem
-# End Source File
-# End Target
-# End Project
diff --git a/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/sca.subsystem b/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/sca.subsystem deleted file mode 100644 index 4b9fdd1511..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/CalculatorSubsystem/sca.subsystem +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9" name="CalculatorSubsystem">
-
- <moduleComponent name="CalculatorService" module="CalculatorModule" />
-
-</subsystem>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtbuild b/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtbuild deleted file mode 100644 index 68fe431c95..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtbuild +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?fileVersion 3.0.0?>
-
-<ManagedProjectBuildInfo>
-<project id="CalculatorClient.cdt.managedbuild.target.gnu.exe.1306251652" name="Executable (Gnu)" projectType="cdt.managedbuild.target.gnu.exe">
-<configuration artifactName="CalculatorClient" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.exe.debug.1274891422" name="Debug" parent="cdt.managedbuild.config.gnu.exe.debug">
-<toolChain id="cdt.managedbuild.toolchain.gnu.exe.debug.336913789" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.exe.debug">
-<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.787936814" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug"/>
-<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.1771987671" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug">
-<option id="gnu.cpp.compiler.option.preprocessor.def.2054136150" superClass="gnu.cpp.compiler.option.preprocessor.def" valueType="definedSymbols">
-<listOptionValue builtIn="false" value="_DEBUG"/>
-</option>
-<option id="gnu.cpp.compiler.option.include.paths.1915103015" superClass="gnu.cpp.compiler.option.include.paths" valueType="includePath">
-<listOptionValue builtIn="false" value="${SCA4CPP}/include"/>
-<listOptionValue builtIn="false" value="${SDO4CPP}/include"/>
-<listOptionValue builtIn="false" value="${SCA4CPP_HOME}/samples/Calculator/CalculatorModule"/>
-</option>
-</tool>
-<tool command="gcc" id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.891767770" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug"/>
-<tool command="g++" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.725133584" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug">
-<option id="gnu.cpp.link.option.libs.1823730610" superClass="gnu.cpp.link.option.libs" valueType="libs">
-<listOptionValue builtIn="false" value="tuscany_sca"/>
-<listOptionValue builtIn="false" value="tuscany_sdo"/>
-<listOptionValue builtIn="false" value="xml2"/>
-<listOptionValue builtIn="false" value="axis_clientC"/>
-<listOptionValue builtIn="false" value="axis_client"/>
-</option>
-<option id="gnu.cpp.link.option.paths.2134416340" superClass="gnu.cpp.link.option.paths" valueType="stringList">
-<listOptionValue builtIn="false" value="${SCA4CPP}/lib"/>
-<listOptionValue builtIn="false" value="${SDO4CPP}/lib"/>
-<listOptionValue builtIn="false" value="${AXISCPP_DEPLOY}/lib"/>
-</option>
-<option id="gnu.cpp.link.option.shared.1172886600" superClass="gnu.cpp.link.option.shared" value="false" valueType="boolean"/>
-</tool>
-<tool command="as" id="cdt.managedbuild.tool.gnu.assembler.exe.debug.1196223857" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug"/>
-<macros/>
-</toolChain>
-</configuration>
-<configuration artifactName="CalculatorClient" cleanCommand="rm -rf" description="" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" id="cdt.managedbuild.config.gnu.exe.release.1644385997" name="Release" parent="cdt.managedbuild.config.gnu.exe.release">
-<toolChain id="cdt.managedbuild.toolchain.gnu.exe.release.362092695" name="GCC Tool Chain" superClass="cdt.managedbuild.toolchain.gnu.exe.release">
-<tool id="cdt.managedbuild.tool.gnu.c.compiler.exe.release.1629456018" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.release"/>
-<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release.666893586" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.release"/>
-<tool id="cdt.managedbuild.tool.gnu.c.linker.exe.release.1162480959" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.exe.release"/>
-<tool id="cdt.managedbuild.tool.gnu.cpp.linker.exe.release.538369525" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.release"/>
-<tool id="cdt.managedbuild.tool.gnu.assembler.exe.release.681891599" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.exe.release"/>
-</toolChain>
-</configuration>
-<macros/>
-</project>
-</ManagedProjectBuildInfo>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtproject b/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtproject deleted file mode 100644 index 48a12e6664..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/.cdtproject +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse-cdt version="2.0"?>
-
-<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
-<extension id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager" point="org.eclipse.cdt.core.ScannerInfoProvider"/>
-<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
-<extension id="org.eclipse.cdt.core.domsourceindexer" point="org.eclipse.cdt.core.CIndexer"/>
-<data>
-<item id="org.eclipse.cdt.core.pathentry">
-<pathentry kind="src" path=""/>
-<pathentry kind="out" path=""/>
-<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
-</item>
-</data>
-</cdtproject>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/.project b/tags/cpp-sca-20060405/samples/Calculator/Client/.project deleted file mode 100644 index 20d79410f9..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/.project +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>CalculatorClient</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.cdt.core.cnature</nature> - <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> - <nature>org.eclipse.cdt.core.ccnature</nature> - </natures> -</projectDescription> diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/.settings/org.eclipse.cdt.managedbuilder.core.prefs b/tags/cpp-sca-20060405/samples/Calculator/Client/.settings/org.eclipse.cdt.managedbuilder.core.prefs deleted file mode 100644 index 64ec20058b..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/.settings/org.eclipse.cdt.managedbuilder.core.prefs +++ /dev/null @@ -1,6 +0,0 @@ -#Tue Dec 13 10:20:35 GMT 2005
-eclipse.preferences.version=1
-environment/buildEnvironmentInclude/cdt.managedbuild.config.gnu.exe.debug.1274891422=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="CPATH" operation\="remove"/>\n<variable name\="CPLUS_INCLUDE_PATH" operation\="remove"/>\n</environment>\n
-environment/buildEnvironmentLibrary/cdt.managedbuild.config.gnu.exe.debug.1274891422=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment>\n<variable name\="LIBRARY_PATH" operation\="remove"/>\n</environment>\n
-environment/project=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
-environment/project/cdt.managedbuild.config.gnu.exe.debug.1274891422=<?xml version\="1.0" encoding\="UTF-8"?>\n<environment/>\n
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Calc.cpp b/tags/cpp-sca-20060405/samples/Calculator/Client/Calc.cpp deleted file mode 100644 index 8322532617..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Calc.cpp +++ /dev/null @@ -1,144 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed under the Apache License, Version 2.0 (the "License"); you | -| may not use this file except in compliance with the License. You may | -| obtain a copy of the License at | -| http://www.apache.org/licenses/LICENSE-2.0 | -| | -| Unless required by applicable law or agreed to in writing, software | -| distributed under the License is distributed on an "AS IS" BASIS, | -| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | -| implied. See the License for the specific language governing | -| permissions and limitations under the License. | -+----------------------------------------------------------------------+ -*/ - -#include "Calculator.h" -#include "osoa/sca/sca.h" -#include <iostream> -#include <stdlib.h> - -using namespace osoa::sca; -using namespace std; - -void usage(); -bool IsNumber(const char *p); - -int main(int argc, char* argv[]) -{ - const char *operation; - float arg1 = 0; - float arg2 = 0; - - if (argc == 4) - { - operation = argv[1]; - - if (!IsNumber(argv[2])) - { - cout << "Calc.exe: Argument 1 is not a number" << endl; - usage(); - } - else - { - arg1 = atof(argv[2]); - } - - if (!IsNumber(argv[3])) - { - cout << "Calc.exe: Argument 2 is not a number" << endl; - usage(); - } - else - { - arg2 = atof(argv[3]); - } - } - else - { - usage(); - } - - try - { - - // Set the default module environment variable: <subsystem>/<moduleName> - //char *defaultModule = "SCA4CPP_DEFAULT_MODULE=SubSystem2/CalculatorServiceModule"; - //putenv(defaultModule); - - // Locate a service - ModuleContext myContext = ModuleContext::getCurrent(); - Calculator *calcService = (Calculator*) myContext.locateService("CalculatorServiceComponent"); - if (calcService == 0) - { - cout << "Calc.exe: Unable to find Calculator service" << endl; - } - else - { - try - { - float result = 0; - if (strcmp(operation, "add") == 0) - { - result = calcService->add(arg1, arg2); - cout << "Calculator: add(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "sub") == 0) - { - result = calcService->sub(arg1, arg2); - cout << "Calculator: sub(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "mul") == 0) - { - result = calcService->mul(arg1, arg2); - cout << "Calculator: mul(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - if (strcmp(operation, "div") == 0) - { - result = calcService->div(arg1, arg2); - cout << "Calculator: div(" << arg1 << "," << arg2 << ") = " << result << endl; - } - else - { - cout << "Calculator: Unrecognized operation: " << operation << endl; - } - } - catch (char* x) - { - cout << "Calc.exe: exception caught: " << x << endl; - } - } - - } - catch (ServiceRuntimeException& ex) - { - cout << ex << endl; - } - return 0; -} - -void usage() -{ - cout << "Usage: calc add|sub|mul|div arg1 arg2" << endl; - exit(1); -} - -bool IsNumber (const char *p) -{ - int len = strlen(p); - for (int i = 0; i < len; i++) - { - if (!isdigit (p[i])) - { - return false; - } - } - return true; -} diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Calculator.h b/tags/cpp-sca-20060405/samples/Calculator/Client/Calculator.h deleted file mode 100644 index 9284178d5f..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Calculator.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -+----------------------------------------------------------------------+ -| (c) Copyright IBM Corporation 2005. | -| All Rights Reserved. | -+----------------------------------------------------------------------+ -| | -| Licensed under the Apache License, Version 2.0 (the "License"); you | -| may not use this file except in compliance with the License. You may | -| obtain a copy of the License at | -| http://www.apache.org/licenses/LICENSE-2.0 | -| | -| Unless required by applicable law or agreed to in writing, software | -| distributed under the License is distributed on an "AS IS" BASIS, | -| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | -| implied. See the License for the specific language governing | -| permissions and limitations under the License. | -+----------------------------------------------------------------------+ -*/ - -#ifndef CALCULATOR_H -#define CALCULATOR_H -class Calculator -{ -public: - virtual float add(float arg1, float arg2) = 0; - virtual float sub(float arg1, float arg2) = 0; - virtual float mul(float arg1, float arg2) = 0; - virtual float div(float arg1, float arg2) = 0; -}; - -#endif - - diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Client.dsp b/tags/cpp-sca-20060405/samples/Calculator/Client/Client.dsp deleted file mode 100644 index 75a19ae815..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Client.dsp +++ /dev/null @@ -1,108 +0,0 @@ -# Microsoft Developer Studio Project File - Name="Client" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Client - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Client.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Client.mak" CFG="Client - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Client - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Client - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x809 /d "NDEBUG"
-# ADD RSC /l 0x809 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "Client - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "Debug"
-# PROP Intermediate_Dir "Debug"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MD /W3 /Gm /GX /ZI /Od /I "$(SDO4CPP)/include" /I "$(SCA4CPP)/include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD BASE RSC /l 0x809 /d "_DEBUG"
-# ADD RSC /l 0x809 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib tuscany_sdo.lib tuscany_sca.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"$(SDO4CPP)/lib" /libpath:"$(SCA4CPP)/lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Client - Win32 Release"
-# Name "Client - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\Calc.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=.\Calculator.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# Begin Source File
-
-SOURCE=.\readme.txt
-# End Source File
-# End Target
-# End Project
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Client.plg b/tags/cpp-sca-20060405/samples/Calculator/Client/Client.plg deleted file mode 100644 index 0f33cc8711..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Client.plg +++ /dev/null @@ -1,16 +0,0 @@ -<html>
-<body>
-<pre>
-<h1>Build Log</h1>
-<h3>
---------------------Configuration: Client - Win32 Debug--------------------
-</h3>
-<h3>Command Lines</h3>
-
-
-
-<h3>Results</h3>
-Client.exe - 0 error(s), 0 warning(s)
-</pre>
-</body>
-</html>
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/makefile b/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/makefile deleted file mode 100644 index 4fed2ace08..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/makefile +++ /dev/null @@ -1,43 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-ROOT := ..
-
--include $(ROOT)/makefile.init
-
-RM := rm -rf
-
-# All of the sources participating in the build are defined here
--include sources.mk
--include $(SUBDIRS:%=%/subdir.mk)
--include objects.mk
-ifneq ($(strip $(DEPS)),)
--include $(DEPS)
-endif
-
--include $(ROOT)/makefile.defs
-
-# Add inputs and outputs from these tool invocations to the build variables
-
-# All Target
-all: CalculatorClient
-
-# Tool invocations
-CalculatorClient: $(OBJS) $(USER_OBJS)
- @echo 'Building target: $@'
- @echo 'Invoking: GCC C++ Linker'
- @echo g++ -L${SCA4CPP}/lib -L${SDO4CPP}/lib -L${AXISCPP_DEPLOY}/lib -oCalculatorClient $(OBJS) $(USER_OBJS) $(LIBS)
- @g++ -L${SCA4CPP}/lib -L${SDO4CPP}/lib -L${AXISCPP_DEPLOY}/lib -oCalculatorClient $(OBJS) $(USER_OBJS) $(LIBS)
- @echo 'Finished building target: $@'
- @echo ' '
-
-# Other Targets
-clean:
- -$(RM) $(OBJS)$(DEPS)$(EXECUTABLES) CalculatorClient
- -@echo ' '
-
-.PHONY: all clean dependents
-.SECONDARY:
-
--include $(ROOT)/makefile.targets
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/objects.mk b/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/objects.mk deleted file mode 100644 index a6aa648eba..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/objects.mk +++ /dev/null @@ -1,7 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-LIBS := -ltuscany_sca -ltuscany_sdo -lxml2 -laxis_clientC -laxis_client
-
-USER_OBJS :=
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/sources.mk b/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/sources.mk deleted file mode 100644 index 3c384d3f72..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/sources.mk +++ /dev/null @@ -1,20 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-C_UPPER_SRCS :=
-CPP_SRCS :=
-O_SRCS :=
-ASM_SRCS :=
-S_SRCS :=
-CXX_SRCS :=
-CC_SRCS :=
-OBJ_SRCS :=
-OBJS :=
-DEPS :=
-EXECUTABLES :=
-
-# Every subdirectory with source files must be described here
-SUBDIRS := \
-. \
-
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/subdir.mk b/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/subdir.mk deleted file mode 100644 index 3328b2862f..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/Debug/subdir.mk +++ /dev/null @@ -1,29 +0,0 @@ -################################################################################
-# Automatically-generated file. Do not edit!
-################################################################################
-
-# Add inputs and outputs from these tool invocations to the build variables
-CPP_SRCS += \
-$(ROOT)/Calc.cpp
-
-OBJS += \
-./Calc.o
-
-DEPS += \
-${addprefix ./, \
-Calc.d \
-}
-
-
-# Each subdirectory must supply rules for building sources it contributes
-%.o: $(ROOT)/%.cpp
- @echo 'Building file: $<'
- @echo 'Invoking: GCC C++ Compiler'
- @echo g++ -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -I${SCA4CPP_HOME}/samples/Calculator/CalculatorModule -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $<
- @g++ -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -I${SCA4CPP_HOME}/samples/Calculator/CalculatorModule -O0 -g3 -Wall -c -fmessage-length=0 -o$@ $< && \
- echo -n $(@:%.o=%.d) $(dir $@) > $(@:%.o=%.d) && \
- g++ -MM -MG -P -w -D_DEBUG -I${SCA4CPP}/include -I${SDO4CPP}/include -I${SCA4CPP_HOME}/samples/Calculator/CalculatorModule -O0 -g3 -Wall -c -fmessage-length=0 $< >> $(@:%.o=%.d)
- @echo 'Finished building: $<'
- @echo ' '
-
-
diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/readme.txt b/tags/cpp-sca-20060405/samples/Calculator/Client/readme.txt deleted file mode 100644 index 615f1533b1..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/readme.txt +++ /dev/null @@ -1,53 +0,0 @@ -Tuscany SCA for C++ Samples - Calculator Sample -=============================================== - -This is a very simple sample to show how an SCA module with a single component -can be built and called from an executable. - -There are three sub projects in this workspace: - - CalculatorModule - This contains the source code and SCA artifacts for the SCA module. This - is the module that will be deployed into the SCA runtime. - - CalculatorSubsystem - This contains the sca.subsystem file which describes a subsystem to the - SCA runtime. - - Client - An example client which will call the service exposed by the single component - in the CalculatorModule. - - -Build instructions ------------------- - -1) Build the SCA module. - - Set CalculatorModule project as the active project. - Right click->Set as active project - - - Run the SCA generation tool to create the proxy and wrapper classes. - Either Tools->SCA Gen if you have added SCA Gen as an external tool - Or run from the command line: - scagen -dir <projectDirectory> -output <projectDirectory> - where the projectDirectory is the directory with the sca.module file. - - - Rebuild All - Build->Rebuild All - -2) Package and deploy the SCA module - - There is a script file in the sca/samples/Calculator directory which will - copy across all the files needed for deployment to the Tuscany runtime. - On a command line run pack_deploy.cmd - As a default, the sample will be copied to sca/samples/runtime directory - Both the SCA module and the subsystem will be copied. - -3) Build the client - - Set the Client project as the active project. - Right click->Set as active project - - - Rebuild All - Build->Rebuild All - -4) Run the client - - Use the command file in the sca/samples/Calculator/Client directory to run the - client. This command file will set the SCA environment variables before running - the client. For example, - runclient add 4 9 diff --git a/tags/cpp-sca-20060405/samples/Calculator/Client/runclient.cmd b/tags/cpp-sca-20060405/samples/Calculator/Client/runclient.cmd deleted file mode 100644 index 8aa6f24f65..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/Client/runclient.cmd +++ /dev/null @@ -1,14 +0,0 @@ -@echo off -rem Runs the client after setting the SCA environment variables to use the -rem CalculatorSubsystem -setlocal -set SCA4CPP_SYSTEM_ROOT=%~d0%~p0\..\..\runtime - -rem Only need to specify the subsystem (and not the moduleComponent as well) because -rem there is only one moduleComponent in the subsystem - it is a very simple sample. -set SCA4CPP_DEFAULT_MODULE=CalculatorSubsystem - -rem Run the client -%~d0%~p0\debug\Client.exe %* - -endlocal
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/build.sh b/tags/cpp-sca-20060405/samples/Calculator/build.sh deleted file mode 100755 index 3e2dbcb0bc..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/build.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh - -# Copyright 2005 The Apache Software Foundation or its licensors, as applicable. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -APFULLDIR=`pwd` - -export SCA4CPP_HOME="$APFULLDIR/../../" - -if [ x$SCA4CPP = x ]; then -export SCA4CPP="$SCA4CPP_HOME" -fi -echo "Using SCA installed at $SCA4CPP" - -if [ x$AXISCPP_DEPLOY = x ]; then -echo "AXISCPP_DEPLOY not set" -exit; -fi -echo "Using Axis C++ installed at $AXISCPP_DEPLOY" - -if [ x$XERCES_DEPLOY = x ]; then -echo "XERCES_DEPLOY not set" -exit; -fi -echo "Using Xerces C++ installed at $XERCES_DEPLOY" - -if [ x$SDO4CPP = x ]; then -echo "SDO4CPP not set" -export SDO4CPP=$SCA4CPP_HOME/../sdo -fi -echo "Using SDO installed at $SDO4CPP" - -TEST_ROOT=$APFULLDIR - -cd $SCA4CPP/bin -./scagen.sh -dir $TEST_ROOT/CalculatorModule -output $TEST_ROOT/CalculatorModule -cd $TEST_ROOT/CalculatorModule/Debug -make clean -make - -cd $TEST_ROOT/Client/Debug -make clean -make - -TEST_SYSTEM=$TEST_ROOT/../runtime - -mkdir -p $TEST_SYSTEM/modules/CalculatorModule -mkdir -p $TEST_SYSTEM/subsystems/CalculatorSubsystem - -cp $TEST_ROOT/CalculatorModule/sca.module.lin $TEST_SYSTEM/modules/CalculatorModule/sca.module -cp $TEST_ROOT/CalculatorModule/*.componentType $TEST_SYSTEM/modules/CalculatorModule -cp $TEST_ROOT/CalculatorModule/Calculator.h $TEST_SYSTEM/modules/CalculatorModule -cp $TEST_ROOT/CalculatorModule/CalculatorImpl.h $TEST_SYSTEM/modules/CalculatorModule -cp $TEST_ROOT/CalculatorModule/Debug/libCalculatorModule.so $TEST_SYSTEM/modules/CalculatorModule -cp $TEST_ROOT/CalculatorSubsystem/sca.subsystem $TEST_SYSTEM/subsystems/CalculatorSubsystem - -export LD_LIBRARY_PATH=$SCA4CPP/lib:$SDO4CPP/lib:$LD_LIBRARY_PATH:$AXISCPP_DEPLOY/lib:$XERCES_DEPLOY/lib - -export TUSCANY_SCACPP=$SCA4CPP -export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM -export TUSCANY_SCACPP_DEFAULT_MODULE=CalculatorSubsystem - -cd $TEST_ROOT/Client -Debug/CalculatorClient add 4 9 diff --git a/tags/cpp-sca-20060405/samples/Calculator/pack_deploy.cmd b/tags/cpp-sca-20060405/samples/Calculator/pack_deploy.cmd deleted file mode 100644 index eed6af8411..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/pack_deploy.cmd +++ /dev/null @@ -1,27 +0,0 @@ -@echo off -rem Will copy the correct files from the source tree for packaging and deployment of the -rem SCA sample. -setlocal -set sourcePath=%~d0%~p0 -if . == %1. ( -set destinationPath=%sourcePath%..\runtime -) ELSE ( -set destinationPath=%1 -) - -mkdir %destinationPath%\modules -mkdir %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\*.componentType %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\sca.module %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\Calculator.h %destinationPath%\modules\CalculatorModule -copy %sourcePath%\CalculatorModule\CalculatorImpl.h %destinationPath%\modules\CalculatorModule - -copy %sourcePath%\CalculatorModule\debug\CalculatorModule.dll %destinationPath%\modules\CalculatorModule - - -mkdir %destinationPath%\subsystems -mkdir %destinationPath%\subsystems\CalculatorSubsystem -copy %sourcePath%\CalculatorSubsystem\sca.subsystem %destinationPath%\subsystems\CalculatorSubsystem - - -endlocal
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/Calculator/runclient.sh b/tags/cpp-sca-20060405/samples/Calculator/runclient.sh deleted file mode 100755 index b16ec76414..0000000000 --- a/tags/cpp-sca-20060405/samples/Calculator/runclient.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -# Copyright 2005 The Apache Software Foundation or its licensors, as applicable. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -APFULLDIR=`pwd` -export SCA4CPP_HOME="$APFULLDIR/../../" - -if [ x$SCA4CPP = x ]; then -export SCA4CPP="$SCA4CPP_HOME" -fi -echo "Using SCA installed at $SCA4CPP" - -if [ x$AXISCPP_DEPLOY = x ]; then -echo "AXISCPP_DEPLOY not set" -exit; -fi -echo "Using Axis C++ installed at $AXISCPP_DEPLOY" - -if [ x$XERCES_DEPLOY = x ]; then -echo "XERCES_DEPLOY not set" -exit; -fi -echo "Using Xerces C++ installed at $XERCES_DEPLOY" - -if [ x$SDO4CPP = x ]; then -echo "SDO4CPP not set" -export SDO4CPP=$SCA4CPP_HOME/../sdo -fi -echo "Using SDO installed at $SDO4CPP" - -TEST_ROOT=$APFULLDIR -TEST_SYSTEM=$TEST_ROOT/../runtime - -export LD_LIBRARY_PATH=$SCA4CPP/lib:$SDO4CPP/lib:$LD_LIBRARY_PATH:$AXISCPP_DEPLOY/lib:$XERCES_DEPLOY/lib - -export TUSCANY_SCACPP=$SCA4CPP -export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_SYSTEM -export TUSCANY_SCACPP_DEFAULT_MODULE=CalculatorSubsystem - -cd $TEST_ROOT/Client -Debug/CalculatorClient add 4 9 diff --git a/tags/cpp-sca-20060405/samples/Makefile.am b/tags/cpp-sca-20060405/samples/Makefile.am deleted file mode 100644 index 8cd2985ea1..0000000000 --- a/tags/cpp-sca-20060405/samples/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = MyValue diff --git a/tags/cpp-sca-20060405/samples/MyValue/Client/Makefile.am b/tags/cpp-sca-20060405/samples/MyValue/Client/Makefile.am deleted file mode 100644 index e404f8f077..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/Client/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -prgbindir=$(prefix)/samples/bin -prgbin_PROGRAMS = MyValueClient - -MyValueClient_SOURCES = MyValueClient.cpp - -MyValueClient_LDADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo \ - -L$(AXISCPP_DEPLOY)/lib -laxis_client -lxml2 - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include \ - -I${AXISCPP_DEPLOY}/include diff --git a/tags/cpp-sca-20060405/samples/MyValue/Client/MyValueClient.cpp b/tags/cpp-sca-20060405/samples/MyValue/Client/MyValueClient.cpp deleted file mode 100755 index 9c5c24486a..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/Client/MyValueClient.cpp +++ /dev/null @@ -1,180 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#pragma warning(disable: 4786) - -#include "commonj/sdo/Logger.h" -#include "commonj/sdo/SDO.h" -#include "commonj/sdo/HelperProvider.h" -#include "osoa/sca/sca.h" -#include "tuscany/sca/util/Logger.h" -#include "tuscany/sca/util/Utils.h" -#include "tuscany/sca/ws/SDOStub.h" -#include <iostream> - -using namespace std; -using namespace osoa::sca; -using namespace tuscany::sca; -using namespace commonj::sdo; -using namespace tuscany::sca::ws; - -void usage(); - -// -// MyValueClient is a sample application that invokes operations on the -// MyValueService Web Service. -// -int main(int argc, char* argv[]) -{ - - // - // Schema file for the types used by MyValueService - // - char *pszXSD; - - // - // The WebService endpoint uri. - // - char *pszEndpoint; - - // - // TargetNamespace - // - const char *pszTargetNamespace; - - // - // SOAPAction - // - // Axis 1.5: SoapAction must be <serviceName>#<operationName>. - const char *pcszSoapAction = "MyValueService#getMyValue"; - - // - // Operation Name - // - const char *pcszOperationName = "getMyValue"; - - // - // Operation Response Name - // - const char *pcszOperationResponseName = "getMyValueResponse"; - - - // Get the input parameters. - if (argc == 3) - { - // Schema file. - pszXSD = argv[1]; - // Web Service endpoint. - pszEndpoint = argv[2]; - } - else - { - usage(); - } - - // The current version of SDO does not support the embedded schema in the wsdl file, - // so we have to load an external schema. - XSDHelperPtr xsdHelper = HelperProvider::getXSDHelper(); - - try - { - cout << "define file: " << pszXSD <<endl; - pszTargetNamespace = xsdHelper->defineFile(pszXSD); - } - catch (SDORuntimeException ex) - { - cout << ex << endl; - exit(1); - } - cout << "define file done: " << pszTargetNamespace <<endl; - - - // Create an SDO for the request - DataFactoryPtr factory = xsdHelper->getDataFactory(); - DataObjectPtr requestDO = 0; - - try - { - // Create the root element for the operation and then add the parameters - // we need to invoke the operation. - requestDO = factory->create(pszTargetNamespace, pcszOperationName); - requestDO->setCString("customerID", "12345"); - } - catch (SDORuntimeException e) - { - cout << "SDORuntimeException: " << e << endl; - exit(1); - } - - // - // Create an SDOStub that will use the request SDO to invoke the operation. - // - SDOStub *stub = new SDOStub(); - stub->setEndpoint(pszEndpoint); - stub->setOperationName(pcszOperationName); - stub->setTargetNamespace(pszTargetNamespace); - stub->setOperationResponseName(pcszOperationResponseName); - stub->setSoapAction(pcszSoapAction); - // DEBUG - Don't let the soap transport timeout while debugging. - stub->setTransportTimeout(0); - // DEBUG - - try - { - // Invoke the operation. - DataObjectPtr responseDO = stub->invoke(requestDO, factory); - // Print the response. - if (responseDO != 0) - { - cout << "MyValueClient: response DataObject = " << endl; - Utils::printDO(responseDO); - cout << endl; - float fValue = responseDO->getFloat("myValue"); - cout << "MyValueClient: myValue = " << fValue; - } - else - { - cout << "MyValueClient: MyValueService did not return a result" << endl; - } - } - catch (SDORuntimeException& e) - { - cout << "SDORuntimeException: " << e << endl; - } - catch (ServiceRuntimeException& e) - { - cout << "ServiceRuntimeException: " << e << endl; - } - catch(exception& e) - { - cout << "Exception: " << e.what() << endl; - } - - - return 0; -} - -// -// Print usage message. -// -void usage() -{ - cout << "MyValueClient.exe: Invoke operations on MyValueService Web Service" << endl; - cout << "Usage: MyValueClient XSD endpoint" << endl; - cout << "where XSD = path and name of XSD file that defines the MyValue types" << endl; - cout << " endpoint = web service endpoint" << endl; - exit(1); -} diff --git a/tags/cpp-sca-20060405/samples/MyValue/Makefile.am b/tags/cpp-sca-20060405/samples/MyValue/Makefile.am deleted file mode 100644 index 7541093280..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -SUBDIRS = MyValueModule Client - -deploy_dir = $(top_builddir)/samples/runtime -deploy_module = $(deploy_dir)/modules/MyValueModule - -install-exec-local: - cp MyValueSubsystem/sca.subsystem $(deploy_dir)/subsystems/MyValueSubsystem - cp MyValueModule/sca.module $(deploy_module) - cp MyValueModule/CustomerInfo.fragment $(deploy_module) - cp MyValueModule/Tuscany-model.config $(deploy_module) - cp MyValueModule/CustomerInfo/CustomerInfoImpl.componentType $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/.libs/libCustomerInfo.so $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/CustomerInfo.h $(deploy_module)/CustomerInfo - cp MyValueModule/CustomerInfo/CustomerInfoImpl.h $(deploy_module)/CustomerInfo - cp MyValueModule/MyValue/MyValueImpl.componentType $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValue.h $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValueImpl.h $(deploy_module)/MyValue - cp MyValueModule/MyValue/MyValueService.wsdl $(deploy_module)/MyValue - cp MyValueModule/MyValue/.libs/libMyValue.so $(deploy_module)/MyValue - cp MyValueModule/StockQuoteService/StockQuoteService.h $(deploy_module)/StockQuoteService - cp MyValueModule/StockQuoteService/StockQuoteService.wsdl $(deploy_module)/StockQuoteService - - diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo.fragment b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo.fragment deleted file mode 100755 index b7f79799b5..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo.fragment +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<moduleFragment xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:mvs="http://www.myvalue.org/MyValueService/"
- name="CustomerInfoComponent">
-
-
- <component name="CustomerInfoComponent">
- <implementation.cpp dll="CustomerInfo/libCustomerInfo.so" header="CustomerInfo/CustomerInfoImpl.h"></implementation.cpp>
- <properties>
- <v:Fred>x</v:Fred>
- <v:Joe>23</v:Joe>
- <Joe>42</Joe>
- </properties>
- <references>
- </references>
- </component>
-
-</moduleFragment>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h deleted file mode 100755 index 766fc55fe6..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfo.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef CustomerInfo_h -#define CustomerInfo_h - -class CustomerInfo -{ -public: - virtual const char* getCustomerInformation(const char* customerID) = 0; - -}; - -#endif diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType deleted file mode 100755 index 52988cb90a..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.componentType +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:xs="http://www.w3.org/2001/XMLSchema">
-
- <service name="CustomerInfoService">
- <interface.cpp header="CustomerInfo/CustomerInfo.h">
- </interface.cpp>
- </service>
-
- <property name="Fred" type="xs:string"/>
- <property name="Joe" type="xs:integer" many="true"/>
-
-</componentType>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp deleted file mode 100755 index ed3ff5e2ff..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#include "CustomerInfoImpl.h" -#include <ostream> -#include <string.h> -#include "osoa/sca/sca.h" -#include "commonj/sdo/DataObjectInstance.h" -using namespace osoa::sca; -using namespace commonj::sdo; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -CustomerInfoImpl::CustomerInfoImpl() -{ - cout << "Construct CustomerInfoImpl" << endl; - -} - -CustomerInfoImpl::~CustomerInfoImpl() -{ - cout << "Destroy CustomerInfoImpl" << endl; -} - -////////////////////////////////////////////////////////////////////// -// Other methods -////////////////////////////////////////////////////////////////////// -const char* CustomerInfoImpl::getCustomerInformation(const char* customerID) -{ - cout << "In getCustomerInformation with customerid: " << customerID << endl; - - - - ComponentContext myContext = ComponentContext::getCurrent(); - - DataObjectInstance properties = myContext.getProperties(); - DataObjectInstance props2 = properties; - if (properties) - { - const char* fredVal = properties->getCString("Fred"); - cout << "Property Fred value: " << fredVal <<endl; - - - DataObjectList& joeList = properties->getList("Joe"); - for (int i=0; i<joeList.size();i++) - { - cout << "Property Joe value " << i << ": " << joeList.getInteger(i) <<endl; - } - } - - if (!strcmp("12345", customerID)) - { - return "IBM"; - } - else - { - throw "Wobbler"; - } - - -} diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h deleted file mode 100755 index c943b1d666..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/CustomerInfoImpl.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef CustomerInfoImpl_h -#define CustomerInfoImpl_h - -#include "CustomerInfo.h" - - - -class CustomerInfoImpl : public CustomerInfo -{ -public: - CustomerInfoImpl(); - virtual ~CustomerInfoImpl(); - virtual const char* getCustomerInformation(const char* customerID); - -}; - -#endif diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am deleted file mode 100644 index ce4a864b79..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/CustomerInfo/Makefile.am +++ /dev/null @@ -1,16 +0,0 @@ -lib_LTLIBRARIES = libCustomerInfo.la - -libCustomerInfo_la_SOURCES = \ -CustomerInfoImpl.cpp \ -CustomerInfoImpl_CustomerInfoService_Proxy.cpp \ -CustomerInfoImpl_CustomerInfoService_Wrapper.cpp - -libCustomerInfo_la_LIBADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include \ - -I${AXISCPP_DEPLOY}/include - -install:
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Makefile.am b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Makefile.am deleted file mode 100644 index 7d57c06f3d..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ -SUBDIRS = CustomerInfo MyValue - -BUILT_SOURCES = scagen - -scagen: - cd $(top_builddir)/bin && \ - ./scagen.sh -dir $(prefix)/samples/MyValue/MyValueModule -output $(prefix)/samples/MyValue/MyValueModule - mv CustomerInfoImpl_* CustomerInfo - mv MyValueImpl_* MyValue - diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/Makefile.am b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/Makefile.am deleted file mode 100644 index d292a02fc5..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/Makefile.am +++ /dev/null @@ -1,18 +0,0 @@ -lib_LTLIBRARIES = libMyValue.la - -libMyValue_la_SOURCES = \ -MyValueImpl.cpp \ -MyValueImpl_customerInfo_Proxy.cpp \ -MyValueImpl_MyValueService_Proxy.cpp \ -MyValueImpl_MyValueService_Wrapper.cpp \ -MyValueImpl_stockQuote_Proxy.cpp - -libMyValue_la_LIBADD = -L$(top_builddir)/runtime/core/src -ltuscany_sca \ - -L${TUSCANY_SDOCPP}/lib -ltuscany_sdo - -INCLUDES = -I.. \ - -I$(top_builddir)/runtime/core/src \ - -I${TUSCANY_SDOCPP}/include \ - -I${AXISCPP_DEPLOY}/include - -install:
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValue.h b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValue.h deleted file mode 100755 index 3efa7ecc61..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValue.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MyValue_h -#define MyValue_h - -#include "commonj/sdo/SDO.h" -using commonj::sdo::DataObjectPtr; - -class MyValue -{ -public: - virtual DataObjectPtr getMyValue(DataObjectPtr inDataObject) = 0; -}; - -#endif diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType deleted file mode 100755 index 16530400b5..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.componentType +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9">
-
- <service name="MyValueService">
- <interface.cpp header="MyValue/MyValue.h">
- </interface.cpp>
- </service>
-
- <reference name="customerInfo">
- <interface.cpp header="CustomerInfo/CustomerInfo.h">
- </interface.cpp>
- </reference>
-
- <reference name="stockQuote">
- <interface.cpp header="StockQuoteService/StockQuoteService.h">
- </interface.cpp>
- </reference>
-
-</componentType>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp deleted file mode 100755 index 4a2d64ea6d..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.cpp +++ /dev/null @@ -1,143 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// -// MyValueImpl.cpp: implementation of the MyValueImpl class. -// - -#include "commonj/sdo/HelperProvider.h" -#include "commonj/sdo/SDO.h" -#include "osoa/sca/sca.h" -#include "MyValueImpl.h" -#include "CustomerInfo/CustomerInfo.h" -#include "StockQuoteService/StockQuoteService.h" -#include <iostream> - -using namespace std; -using namespace osoa::sca; -using namespace commonj::sdo; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -MyValueImpl::MyValueImpl() -{ - cout << "Construct MyValueImpl" << endl; - -} - -MyValueImpl::~MyValueImpl() -{ - cout << "Destroy MyValueImpl" << endl; -} - -////////////////////////////////////////////////////////////////////// -// Other methods -////////////////////////////////////////////////////////////////////// -DataObjectPtr MyValueImpl::getMyValue(DataObjectPtr inDataObject) -{ - DataObjectPtr responseDO = 0; - - string customerID = inDataObject->getCString("customerID"); - cout << "In getMyValue with customerid: " << customerID << endl; - - // Get the CustomerInfo service. - ComponentContext myContext = ComponentContext::getCurrent(); - CustomerInfo* customerInfoService = (CustomerInfo*)myContext.getService("customerInfo"); - - if (customerInfoService == 0) - { - cout << "Unable to find customer info service" << endl; - - return responseDO; - } - - // Get the name of the stock for customer 'customerID' from the customerInfoService. - const char * stock; - try - { - stock = customerInfoService->getCustomerInformation(customerID.c_str()); - } - catch(const char* x) - { - cout << "Exception caught: " << x <<endl; - throw; - } - - - // Check that we get the same stock back when iterating over the customerInfo services. - ServiceList serviceList = myContext.getServices("customerInfo"); - for (int i=0; i<serviceList.size();i++) - { - CustomerInfo* service = (CustomerInfo*)(serviceList[i]); - stock = service->getCustomerInformation(customerID.c_str()); - cout << "Stock from getServices " << i << " : " << stock <<endl; - - } - - // Use a second SCA reference to get the stock price for the customer's stock. - StockQuoteService* stockQuoteService = (StockQuoteService*)myContext.getService("stockQuote"); - - if (stockQuoteService == 0) - { - cout << "Unable to find stock quote service" << endl; - - return responseDO; - } - - // Create a data object representing the requests (use dynamic API until static is available) - DataObjectPtr stockQuoteRequestDO; - DataFactoryPtr factory; - try - { - // Create the request DO for the StockQuoteService. - factory = myContext.getDataFactory(); - stockQuoteRequestDO = factory->create("http://swanandmokashi.com", "GetQuotes"); - stockQuoteRequestDO->setCString("QuoteTicker", stock); - - // Invoke the StockQuoteService - DataObjectPtr stockQuoteResponseDO = stockQuoteService->GetStockQuotes(stockQuoteRequestDO); - - // DEBUG (Print the response from the StockQuoteService) - XMLHelperPtr xmlHelper = HelperProvider::getXMLHelper(factory);; - XMLDocumentPtr responseDoc = - xmlHelper->createDocument(stockQuoteResponseDO, "http://swanandmokashi.com", "GetQuotesResponse"); - responseDoc->setXMLDeclaration(false); - char *responseXML = xmlHelper->save(responseDoc); - cout << "Response XML from StockQuoteService = " << endl; - cout << responseXML << endl; - cout << endl; - // DEBUG - - // Create the MyValueService response DataObject using the results of the StockQuoteService. - responseDO = factory->create("http://www.myvalue.org/MyValueService/", "getMyValueResponse"); - DataObjectPtr getQuotesResultDO = stockQuoteResponseDO->getDataObject("GetQuotesResult"); - DataObjectList& quoteList = getQuotesResultDO->getList("Quote"); - float fQuote = quoteList[0]->getFloat("StockQuote"); - - responseDO->setFloat("myValue", fQuote); - } - catch (SDORuntimeException sdoE) - { - cout << sdoE; - } - - return responseDO; - -} - diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h deleted file mode 100755 index 05aa7066c1..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueImpl.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MyValueImpl_h -#define MyValueImpl_h - -#include "MyValue.h" - - -class MyValueImpl : public MyValue -{ -public: - MyValueImpl(); - virtual ~MyValueImpl(); - virtual DataObjectPtr getMyValue(DataObjectPtr inDataObject); -}; - -#endif diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl deleted file mode 100755 index 3bc1a12d5c..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.wsdl +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://www.myvalue.org/MyValueService/"
- targetNamespace="http://www.myvalue.org/MyValueService/">
- <types>
- <xs:schema targetNamespace="http://www.myvalue.org/MyValueService/"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:tns="http://www.myvalue.org/MyValueService/"
- elementFormDefault="qualified">
-
- <xs:element name="getMyValue">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="customerID" type="xs:string" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- <xs:element name="getMyValueResponse">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="myValue" type="xs:float" minOccurs="1"/>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
-
- </xs:schema>
- </types>
-
- <message name="getMyValueRequestMsg">
- <part name="body" element="tns:getMyValue"/>
- </message>
-
- <message name="getMyValueResponseMsg">
- <part name="body" element="tns:getMyValueResponse"/>
- </message>
-
- <portType name="MyValueServicePortType">
- <operation name="getMyValue">
- <input message="tns:getMyValueRequestMsg"/>
- <output message="tns:getMyValueResponseMsg"/>
- </operation>
- </portType>
-
- <binding name="MyValueServiceBinding" type="tns:MyValueServicePortType">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <operation name="getMyValue">
- <soap:operation soapAction="MyValueService#getMyValue"/>
- <input>
- <soap:body use="literal"/>
- </input>
- <output>
- <soap:body use="literal"/>
- </output>
- </operation>
- </binding>
-
- <service name="MyValueService">
- <port name="MyValueServicePort" binding="tns:MyValueServiceBinding">
- <soap:address location="http://localhost/axis/MyValueService"/>
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd deleted file mode 100755 index 4a1674f89d..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/MyValue/MyValueService.xsd +++ /dev/null @@ -1,22 +0,0 @@ -<xs:schema targetNamespace="http://www.myvalue.org/MyValueService/" - xmlns:xs="http://www.w3.org/2001/XMLSchema" - xmlns:tns="http://www.myvalue.org/MyValueService/" - elementFormDefault="qualified"> - - <xs:element name="getMyValue"> - <xs:complexType> - <xs:sequence> - <xs:element name="customerID" type="xs:string" minOccurs="1"/> - </xs:sequence> - </xs:complexType> - </xs:element> - - <xs:element name="getMyValueResponse"> - <xs:complexType> - <xs:sequence> - <xs:element name="myValue" type="xs:float" minOccurs="1"/> - </xs:sequence> - </xs:complexType> - </xs:element> - -</xs:schema> diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h deleted file mode 100755 index 7da4069bd1..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* $Rev$ $Date$ */ - -#ifndef StockQuoteService_h -#define StockQuoteService_h -#include <string> -#include "commonj/sdo/SDO.h" -using std::string; -class StockQuoteService -{ -public: - virtual commonj::sdo::DataObjectPtr GetStockQuotes(commonj::sdo::DataObjectPtr request) = 0; - -}; - -#endif // StockQuoteService_h diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl deleted file mode 100755 index 4917cde583..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/StockQuoteService/StockQuoteService.wsdl +++ /dev/null @@ -1,157 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?>
-<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:s="http://www.w3.org/2001/XMLSchema"
- xmlns:s0="http://swanandmokashi.com"
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
- xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
- xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
- targetNamespace="http://swanandmokashi.com"
- xmlns="http://schemas.xmlsoap.org/wsdl/">
- <types>
- <s:schema elementFormDefault="qualified"
- targetNamespace="http://swanandmokashi.com"
- xmlns:s="http://www.w3.org/2001/XMLSchema">
- <s:element name="GetQuotes">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="QuoteTicker" type="s:string" />
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:element name="GetQuotesResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="GetQuotesResult" type="s0:ArrayOfQuote" />
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:complexType name="ArrayOfQuote">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded"
- name="Quote" type="s0:Quote" />
- </s:sequence>
- </s:complexType>
- <s:complexType name="Quote">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1"
- name="CompanyName" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="StockTicker" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="StockQuote" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="LastUpdated" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="Change"
- type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="OpenPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="DayHighPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="DayLowPrice" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1" name="Volume"
- type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="MarketCap" type="s:string" />
- <s:element minOccurs="0" maxOccurs="1"
- name="YearRange" type="s:string" />
- </s:sequence>
- </s:complexType>
- <s:element name="ArrayOfQuote" nillable="true"
- type="s0:ArrayOfQuote" />
- </s:schema>
- </types>
- <message name="GetQuotesSoapIn">
- <part name="parameters" element="s0:GetQuotes" />
- </message>
- <message name="GetQuotesSoapOut">
- <part name="parameters" element="s0:GetQuotesResponse" />
- </message>
- <message name="GetQuotesHttpGetIn">
- <part name="QuoteTicker" type="s:string" />
- </message>
- <message name="GetQuotesHttpGetOut">
- <part name="Body" element="s0:ArrayOfQuote" />
- </message>
- <message name="GetQuotesHttpPostIn">
- <part name="QuoteTicker" type="s:string" />
- </message>
- <message name="GetQuotesHttpPostOut">
- <part name="Body" element="s0:ArrayOfQuote" />
- </message>
- <portType name="StockQuotesSoap">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesSoapIn" />
- <output name="GetQuotes" message="s0:GetQuotesSoapOut" />
- </operation>
- </portType>
- <portType name="StockQuotesHttpGet">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesHttpGetIn" />
- <output name="GetQuotes" message="s0:GetQuotesHttpGetOut" />
- </operation>
- </portType>
- <portType name="StockQuotesHttpPost">
- <operation name="GetStockQuotes">
- <input name="GetQuotes" message="s0:GetQuotesHttpPostIn" />
- <output name="GetQuotes" message="s0:GetQuotesHttpPostOut" />
- </operation>
- </portType>
- <binding name="StockQuotesSoap" type="s0:StockQuotesSoap">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
- style="document" />
- <operation name="GetStockQuotes">
- <soap:operation
- soapAction="http://swanandmokashi.com/GetQuotes" style="document" />
- <input name="GetQuotes">
- <soap:body use="literal" />
- </input>
- <output name="GetQuotes">
- <soap:body use="literal" />
- </output>
- </operation>
- </binding>
- <binding name="StockQuotesHttpGet" type="s0:StockQuotesHttpGet">
- <http:binding verb="GET" />
- <operation name="GetStockQuotes">
- <http:operation location="/GetQuotes" />
- <input name="GetQuotes">
- <http:urlEncoded />
- </input>
- <output name="GetQuotes">
- <mime:mimeXml part="Body" />
- </output>
- </operation>
- </binding>
- <binding name="StockQuotesHttpPost" type="s0:StockQuotesHttpPost">
- <http:binding verb="POST" />
- <operation name="GetStockQuotes">
- <http:operation location="/GetQuotes" />
- <input name="GetQuotes">
- <mime:content type="application/x-www-form-urlencoded" />
- </input>
- <output name="GetQuotes">
- <mime:mimeXml part="Body" />
- </output>
- </operation>
- </binding>
- <service name="StockQuotes">
- <port name="StockQuotesSoap" binding="s0:StockQuotesSoap">
- <soap:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- <port name="StockQuotesHttpGet"
- binding="s0:StockQuotesHttpGet">
- <http:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- <port name="StockQuotesHttpPost"
- binding="s0:StockQuotesHttpPost">
- <http:address
- location="http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx" />
- </port>
- </service>
-</definitions>
diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Tuscany-model.config b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Tuscany-model.config deleted file mode 100755 index 2667f62990..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/Tuscany-model.config +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<tuscany-model xmlns="http://org.apache.tuscany/xmlns/cpp/1.0">
- <wsdl>
- <file name="StockQuoteService/StockQuoteService.wsdl"/>
- <file name="MyValue/MyValueService.wsdl"/>
- </wsdl>
- <xsd>
- </xsd>
-</tuscany-model>
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/sca.module b/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/sca.module deleted file mode 100755 index bda42e04bc..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueModule/sca.module +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<module xmlns="http://www.osoa.org/xmlns/sca/0.9"
- xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
- xmlns:mvs="http://www.myvalue.org/MyValueService/"
- name="MyValueModule">
-
- <!-- Expose as a web service -->
- <entryPoint name="MyValueService" multiplicity="1..1">
- <interface.wsdl interface="MyValue/MyValueService.wsdl" callbackInterface=""></interface.wsdl>
- <binding.ws port="mvs:MyValueServiceBinding"></binding.ws>
- <reference>MyValueServiceComponent</reference>
- </entryPoint>
-
- <component name="MyValueServiceComponent">
- <implementation.cpp dll="MyValue/libMyValue.so" header="MyValue/MyValueImpl.h"></implementation.cpp>
- <properties>
- </properties>
- <references>
- <customerInfo>CustomerInfoComponent</customerInfo>
- <stockQuote>StockQuoteService</stockQuote>
- </references>
- </component>
-
- <externalService name="StockQuoteService">
- <interface.cpp header="StockQuoteService/StockQuoteService.h"/>
- <binding.ws port="http://swanandmokashi.com#wsdl.endpoint(StockQuotes/StockQuotesSoap)"/>
- </externalService>
-
- <!--wire>
- <source.uri>MyValueServiceComponent/customerInfo</source.uri>
- <target.uri>CustomerInfoComponent</target.uri>
- </wire-->
-
-</module>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/MyValueSubsystem/sca.subsystem b/tags/cpp-sca-20060405/samples/MyValue/MyValueSubsystem/sca.subsystem deleted file mode 100755 index ae858ea331..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/MyValueSubsystem/sca.subsystem +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9"
-
- name="MyValueSubsystem">
-
- <moduleComponent name="MyValue" module="MyValueModule">
-
- </moduleComponent>
-
-</subsystem>
-
\ No newline at end of file diff --git a/tags/cpp-sca-20060405/samples/MyValue/runMyValueClient.sh b/tags/cpp-sca-20060405/samples/MyValue/runMyValueClient.sh deleted file mode 100755 index e5feeda1f0..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/runMyValueClient.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh - -# Copyright 2005 The Apache Software Foundation or its licensors, as applicable. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -APFULLDIR=`pwd` - -export SCA4CPP_HOME="$APFULLDIR" -if [ x$SCA4CPP = x ]; then -export TUSCANY_SCACPP="$SCA4CPP_HOME" -fi -echo "Using SCA installed at $SCA4CPP_HOME" - -if [ x$AXISCPP_DEPLOY = x ]; then -echo "AXISCPP_DEPLOY not set" -exit; -fi -echo "Using Axis C++ installed at $AXISCPP_DEPLOY" - -if [ x$XERCES_DEPLOY = x ]; then -echo "XERCES_DEPLOY not set" -exit; -fi -echo "Using Xerces C++ installed at $XERCES_DEPLOY" - -if [ x$TUSCANY_SDOCPP = x ]; then -echo "TUSCANY_SDOCPP not set"exit; -fi -echo "Using SDO installed at $TUSCANY_SDOCPP" - -TEST_ROOT=$SCA4CPP_HOME/runtime/core/test - -export LD_LIBRARY_PATH=$TUSCANY_SCACPP/lib:$TUSCANY_SDOCPP/lib:$LD_LIBRARY_PATH:$AXISCPP_DEPLOY/lib:$XERCES_DEPLOY/lib - -export TUSCANY_SCACPP_SYSTEM_ROOT=$TEST_ROOT/testSCASystem -export TUSCANY_SCACPP_DEFAULT_MODULE=SubSystem1 - -cd $TUSCANY_SCACPP/bin/test -./tuscany_sca_test diff --git a/tags/cpp-sca-20060405/samples/MyValue/server.wsdd b/tags/cpp-sca-20060405/samples/MyValue/server.wsdd deleted file mode 100755 index 8b80b4b6ec..0000000000 --- a/tags/cpp-sca-20060405/samples/MyValue/server.wsdd +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- The Entity, wspath in the following internal subset allows setting a path for the webservices location -->
-<!--<!DOCTYPE vars [ <!ENTITY wspath "/Apache2.0.54/Apache2/Axis/webservices/"> ]>-->
-
-<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:C="http://xml.apache.org/axis/wsdd/providers/C" xmlns:CPP="http://xml.apache.org/axis/wsdd/providers/CPP">
- <globalConfiguration>
- </globalConfiguration>
-
- <service name="MyValueService" provider="CPP:DOCUMENT" description="MyValueService">
- <requestFlow>
- <handler name="SCAWSHandler" type="C:\Apache2.0.54\Apache2\Axis\handlers\tuscany_sca_axis_handler.dll">
- <parameter name="targetNamespace" value="http://www.myvalue.org/MyValueService/"/>
- <parameter name="scaEntryPoint" value="MyValueSubsystem/MyValue/MyValueService"/>
- </handler>
- </requestFlow>
-
- <parameter name="className" value="C:\Apache2.0.54\Apache2\Axis\webservices\tuscany_sca_axis_wrapper.dll"/>
- <parameter name="allowedMethods" value="getMyValue "/>
- </service>
-
-</deployment>
diff --git a/tags/cpp-sca-20060405/samples/runtime/subsystems/MyValueSubsystem/sca.subsystem b/tags/cpp-sca-20060405/samples/runtime/subsystems/MyValueSubsystem/sca.subsystem deleted file mode 100755 index ae858ea331..0000000000 --- a/tags/cpp-sca-20060405/samples/runtime/subsystems/MyValueSubsystem/sca.subsystem +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="ASCII"?>
-<!--
- Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
-<subsystem xmlns="http://www.osoa.org/xmlns/sca/0.9"
-
- name="MyValueSubsystem">
-
- <moduleComponent name="MyValue" module="MyValueModule">
-
- </moduleComponent>
-
-</subsystem>
-
\ No newline at end of file |