From 6b5a81ebfbe2e8c4b3367f04a881956a4b81b0d5 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 19 Nov 2009 17:58:27 +0000 Subject: Removing obsolete release candidate tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882223 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/runtime/core/test/MyValue/MyValueImpl.cpp | 150 --------------------- 1 file changed, 150 deletions(-) delete mode 100644 tags/cpp-0.1.incubating-M1-RC3a/sca/runtime/core/test/MyValue/MyValueImpl.cpp (limited to 'tags/cpp-0.1.incubating-M1-RC3a/sca/runtime/core/test/MyValue/MyValueImpl.cpp') diff --git a/tags/cpp-0.1.incubating-M1-RC3a/sca/runtime/core/test/MyValue/MyValueImpl.cpp b/tags/cpp-0.1.incubating-M1-RC3a/sca/runtime/core/test/MyValue/MyValueImpl.cpp deleted file mode 100644 index a6e10384e4..0000000000 --- a/tags/cpp-0.1.incubating-M1-RC3a/sca/runtime/core/test/MyValue/MyValueImpl.cpp +++ /dev/null @@ -1,150 +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: 2005/12/22 11:33:21 $ */ - -#if defined(WIN32) || defined (_WINDOWS) -#pragma warning(disable: 4786) -#endif - -#include "MyValueImpl.h" -#include "CustomerInfo.h" -#include "StockQuoteService.h" -#include -using namespace std; - -#include "osoa/sca/sca.h" -#include "commonj/sdo/SDO.h" - -using namespace osoa::sca; -using namespace commonj::sdo; - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// - -MyValueImpl::MyValueImpl() -{ - cout << "Construct MyValueImpl" << endl; - -} - -MyValueImpl::~MyValueImpl() -{ - cout << "Destroy MyValueImpl" << endl; -} - -////////////////////////////////////////////////////////////////////// -// Other methods -////////////////////////////////////////////////////////////////////// -float MyValueImpl::getMyValue(const char *customerID) -{ - cout << "In getMyValue with customerid: " << customerID << endl; - - - ComponentContext myContext = ComponentContext::getCurrent(); - CustomerInfo* customerInfoService = (CustomerInfo*)myContext.getService("customerInfo"); - - if (customerInfoService == 0) - { - cout << "unable to find customer info service" << endl; - - return 0.0f; - } - - const char * stock; - try - { - stock = customerInfoService->getCustomerInformation(customerID); - } - catch(const char* x) - { - cout << "Exception caught: " << x <getCustomerInformation(customerID); - cout << "Stock from getServices " << i << " : " << stock <GetQuote("IBM"); - - cout << result<load(result.c_str()); - if (stockDoc->getRootDataObject()) - { - stockPrice=stockDoc->getRootDataObject()->getFloat("Stock.0/Last"); - } - - } - catch (SDORuntimeException e) - { - cout << e; - throw; - } - - return stockPrice; -} - -float MyValueImpl::getMyValueS(const string& customerID) -{ - cout << "In getMyValueS with customerid: " << customerID.c_str() << endl; - return 87.35f; -} - -string MyValueImpl::getCustname(string& customerID) -{ - cout << "In getCustname with customerid: " << customerID.c_str() << endl; - customerID = "FRED"; - cout << "setting customer name to " << customerID.c_str() <