You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2006/09/28 12:12:16 UTC
svn commit: r450785 - in
/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src: osoa/sca/
tuscany/sca/cpp/
Author: robbinspg
Date: Thu Sep 28 03:12:13 2006
New Revision: 450785
URL: http://svn.apache.org/viewvc?view=rev&rev=450785
Log:
Update interfaces to latest 0.95 C++ C&I spec
The spec now uses std::string in place of char* on interfaces
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.cpp
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.h
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.cpp
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.h
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.cpp
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.h
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.cpp
incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.h
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.cpp?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.cpp Thu Sep 28 03:12:13 2006
@@ -94,7 +94,7 @@
// ==========
// getService
// ==========
- void* ComponentContext::getService(const char* referenceName)
+ void* ComponentContext::getService(const std::string& referenceName)
{
LOGENTRY(1, "ComponentContext::getService");
void* service = impl->getService(referenceName);
@@ -105,7 +105,7 @@
// ===========
// getServices
// ===========
- ServiceList ComponentContext::getServices(const char* referenceName)
+ ServiceList ComponentContext::getServices(const std::string& referenceName)
{
return impl->getServices(referenceName);
}
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.h?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/ComponentContext.h Thu Sep 28 03:12:13 2006
@@ -23,6 +23,7 @@
#include "osoa/sca/export.h"
#include "osoa/sca/ServiceList.h"
#include "commonj/sdo/SDO.h"
+#include <string>
namespace osoa
{
namespace sca
@@ -49,7 +50,7 @@
* the name of a reference configured in the component type file for
* this component.
*/
- virtual void* getService(const char* referenceName);
+ virtual void* getService(const std::string& referenceName);
/**
* Resolve a reference name into a list of configured services.
@@ -57,7 +58,7 @@
* the name of a reference configured in the component type file for
* this component.
*/
- virtual ServiceList getServices(const char* referenceName);
+ virtual ServiceList getServices(const std::string& referenceName);
/**
* Get the configured properties for the component.
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.cpp?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.cpp Thu Sep 28 03:12:13 2006
@@ -87,7 +87,7 @@
// =============
// locateService
// =============
- void* CompositeContext::locateService(const char* serviceName)
+ void* CompositeContext::locateService(const std::string& serviceName)
{
LOGENTRY(1, "CompositeContext::locateService");
void* sp = impl->locateService(serviceName);
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.h?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/osoa/sca/CompositeContext.h Thu Sep 28 03:12:13 2006
@@ -49,7 +49,7 @@
* @return A pointer to an object which can be cast to the
* business interface of the target service.
*/
- virtual void* locateService(const char* serviceName);
+ virtual void* locateService(const std::string& serviceName);
/**
* Get an SDO data factory which will allow the component to
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.cpp?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.cpp Thu Sep 28 03:12:13 2006
@@ -53,7 +53,7 @@
// ==========================================================================
// getServices: return a list of Proxies for services wired to this reference
// ==========================================================================
- ServiceList ComponentContextImpl::getServices(const char* referenceName)
+ ServiceList ComponentContextImpl::getServices(const std::string& referenceName)
{
LOGENTRY(1, "ComponentContextImpl::getServices");
@@ -94,7 +94,7 @@
// ===================================================================
// getService: return a Proxy for the services wired to this reference
// ===================================================================
- void* ComponentContextImpl::getService(const char* referenceName)
+ void* ComponentContextImpl::getService(const std::string& referenceName)
{
LOGENTRY(1, "ComponentContextImpl::getService");
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.h?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/ComponentContextImpl.h Thu Sep 28 03:12:13 2006
@@ -62,12 +62,12 @@
/**
* See ComponentContext.
*/
- virtual void* getService(const char* referenceName);
+ virtual void* getService(const std::string& referenceName);
/**
* See ComponentContext.
*/
- virtual ServiceList getServices(const char* referenceName);
+ virtual ServiceList getServices(const std::string& referenceName);
/**
* See ComponentContext.
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.cpp?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.cpp Thu Sep 28 03:12:13 2006
@@ -59,7 +59,7 @@
// ===========================================================================
// locateService: return a proxy connected to a wrapper for the target service
// ===========================================================================
- void* CompositeContextImpl::locateService(const char* serviceName)
+ void* CompositeContextImpl::locateService(const std::string& serviceName)
{
LOGENTRY(1, "CompositeContextImpl::locateService");
Modified: incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.h?view=diff&rev=450785&r1=450784&r2=450785
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.h (original)
+++ incubator/tuscany/cpp/sca/runtime/extensions/cpp/src/tuscany/sca/cpp/CompositeContextImpl.h Thu Sep 28 03:12:13 2006
@@ -54,7 +54,7 @@
/**
* See CompositeContext#locateService.
*/
- virtual void* locateService(const char* serviceName);
+ virtual void* locateService(const std::string& serviceName);
/**
* See CompositeContext.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org