diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-16 06:33:33 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-16 06:33:33 +0000 |
commit | b72b7e219af9b9c6826372eeb581ee85ca653d75 (patch) | |
tree | aae8306f2fa82b755681935bc0315d775490c9d1 /tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp | |
parent | c0a2dcce89b1f374fc1987753dd28c6541bbbfe5 (diff) |
Cleaning up SVN structure, moving tag under sca-cpp/tags.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@880617 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp')
-rw-r--r-- | tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp | 159 |
1 files changed, 0 insertions, 159 deletions
diff --git a/tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp b/tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp deleted file mode 100644 index 462ee1ac4d..0000000000 --- a/tags/cpp-0.1.incubating-M1-final/sca/test/WSEntryPointTest/WSEntryPointTestModule/WSEntryPointTestImpl.cpp +++ /dev/null @@ -1,159 +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 "WSEntryPointTestImpl.h" -#include <stdio.h> -#include <tuscany/sca/util/Utils.h> -using namespace tuscany::sca; -#include <commonj/sdo/SDO.h> -#include <sdo_axiom.h> -using namespace commonj::sdo; -using namespace commonj::sdo_axiom; - -WSEntryPointTestImpl::WSEntryPointTestImpl() -{ -} - -WSEntryPointTestImpl::~WSEntryPointTestImpl() -{ -} - -// WSEntryPointTest interface -char* WSEntryPointTestImpl::doChars(char* arg1) -{ - printf("WSEntryPointTestImpl::doChars %s\n", arg1); - return arg1; -} - - -long WSEntryPointTestImpl::doLong(long arg1) -{ - printf("WSEntryPointTestImpl::doLong %d\n", arg1); - return arg1; -} - -int WSEntryPointTestImpl::doInt(int arg1) -{ - printf("WSEntryPointTestImpl::doInt %d\n", arg1); - return arg1; -} - -float WSEntryPointTestImpl::doFloat(float arg1) -{ - printf("WSEntryPointTestImpl::doFloat %f\n", arg1); - return arg1; -} - -long double WSEntryPointTestImpl::doLongDouble(long double arg1) -{ - printf("WSEntryPointTestImpl::doLongDouble %f\n", arg1); - return arg1; -} - -double WSEntryPointTestImpl::doDouble(double arg1) -{ - printf("WSEntryPointTestImpl::doDouble %f\n", arg1); - return arg1; -} - - -bool WSEntryPointTestImpl::doBool(bool arg1) -{ - printf("WSEntryPointTestImpl::doBool %d\n", arg1); - return arg1; -} - -short WSEntryPointTestImpl::doShort(short arg1) -{ - printf("WSEntryPointTestImpl::doShort %d\n", arg1); - return arg1; -} - -char* WSEntryPointTestImpl::doBytes(char* arg1) -{ - printf("WSEntryPointTestImpl::doBytes %s\n", arg1); - return arg1; -} - -char WSEntryPointTestImpl::doByte(char arg1) -{ - printf("WSEntryPointTestImpl::doByte %c\n", arg1); - return arg1; -} - -DataObjectPtr WSEntryPointTestImpl::doMixed(char* arg1, long arg2, DataObjectPtr arg3, bool arg4, double arg5) -{ - printf("WSEntryPointTestImpl::doMixed %s %d %s %d %d\n", arg1, arg2, arg3->getType().getURI(), arg4, arg5); - Utils::printDO(arg3); - return arg3; -} - -DataObjectPtr WSEntryPointTestImpl::doDataObject(DataObjectPtr arg1) -{ - printf("WSEntryPointTestImpl::doDataObject %s\n", arg1->getType().getURI()); - Utils::printDO(arg1); - return arg1; -} - -DataObjectPtr WSEntryPointTestImpl::doAny(DataObjectPtr arg1) -{ - printf("WSEntryPointTestImpl::doAny %s#%s\n", arg1->getType().getURI(), arg1->getType().getName()); - Utils::printDO(arg1); - //return arg1; - - DataFactoryPtr factory = arg1->getDataFactory(); - DataObjectPtr data = factory->create(Type::SDOTypeNamespaceURI, "OpenDataObject"); - data->setCString("stringData", "Here is some string data"); - data->setBoolean("boolData", true); - DataObjectList& list = data->getList("intDataList"); - list.append((long)123456789); - list.append((long)111111111); - list.append((long)222222222); - Utils::printDO(data); - return data; -} - -//int[] WSEntryPointTestImpl::doIntArray(int[] arg1, int arg2) -//{ -// printf("WSEntryPointTestImpl::doIntArray with length %d\n", arg2); -// for(int i=0; i<arg2; i++) -// { -// printf("%d\n", arg1[i]); -// } -// return arg1; -//} -// -//string WSEntryPointTestImpl::doString(string arg1) -//{ -// printf("WSEntryPointTestImpl::doString %s\n", arg1.c_str()); -// return arg1; -//} -// -//wchar_t WSEntryPointTestImpl::doWChar(wchar_t arg1) -//{ -// printf("WSEntryPointTestImpl::doWChar %s\n", arg1); -// return arg1; -//} -// -//int64_t WSEntryPointTestImpl::doInt64(int64_t arg1) -//{ -// printf("WSEntryPointTestImpl::doInt64 %d\n", arg1); -// return arg1; -//} - |