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 2007/07/12 09:21:56 UTC
svn commit: r555512 - in
/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model:
Composite.cpp Composite.h
Author: robbinspg
Date: Thu Jul 12 00:21:44 2007
New Revision: 555512
URL: http://svn.apache.org/viewvc?view=rev&rev=555512
Log:
TUSCANY-1422 Apply Brady Johnson's patch
Modified:
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.cpp
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.h
Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.cpp?view=diff&rev=555512&r1=555511&r2=555512
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.cpp Thu Jul 12 00:21:44 2007
@@ -127,6 +127,22 @@
Component* component = components[name];
return component;
}
+
+ std::list<std::string> Composite::getComponents() const
+ {
+ logentry();
+
+ std::list<std::string> componentList;
+ COMPONENT_MAP::const_iterator iter = components.begin();
+ COMPONENT_MAP::const_iterator iterEnd = components.end();
+
+ for( ; iter != iterEnd; ++iter )
+ {
+ componentList.push_back( iter->first );
+ }
+
+ return componentList;
+ }
Service* Composite::findComponentService(const std::string& name)
{
@@ -231,7 +247,7 @@
return iter->second;
}
- std::list<std::string> Composite::getWSDLNamespaces()
+ std::list<std::string> Composite::getWSDLNamespaces() const
{
logentry();
std::list<std::string> namespaceList;
@@ -260,7 +276,7 @@
return iter->second;
}
- std::list<std::string> Composite::getIncludedComposites()
+ std::list<std::string> Composite::getIncludedComposites() const
{
logentry();
std::list<std::string> compositeList;
Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.h
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.h?view=diff&rev=555512&r1=555511&r2=555512
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.h (original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/model/Composite.h Thu Jul 12 00:21:44 2007
@@ -117,6 +117,12 @@
SCA_API Component* findComponent(const std::string& componentName);
/**
+ * Get all included components
+ * @return A list of Component name strings
+ */
+ SCA_API std::list<std::string> getComponents() const;
+
+ /**
* Find a component and service by name.
* @param componentServiceName A string of the form
* "componentName"/"serviceName" where the service name is optional
@@ -142,7 +148,7 @@
* Get all loaded WSDL namespaces
* @return A list of strings, each of which is a different project namespace
*/
- SCA_API std::list<std::string> getWSDLNamespaces();
+ SCA_API std::list<std::string> getWSDLNamespaces() const;
/**
* Find an Included Composite by its name
@@ -154,7 +160,7 @@
* Get all included composites
* @return A list of Composite name strings
*/
- SCA_API std::list<std::string> getIncludedComposites();
+ SCA_API std::list<std::string> getIncludedComposites() const;
/**
* Initialize a component of this type.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org