diff options
author | Marc Laukien <marc@zeroc.com> | 2002-07-17 23:12:29 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-07-17 23:12:29 +0000 |
commit | 694f735a9d58ddd967e8665e1689cd33174eb93f (patch) | |
tree | 44ad795e2d8ca3096f82ba46481d3489c20bb223 /cpp/src/Ice/Object.cpp | |
parent | Added YellowS and basicYellowC (diff) | |
download | ice-694f735a9d58ddd967e8665e1689cd33174eb93f.tar.bz2 ice-694f735a9d58ddd967e8665e1689cd33174eb93f.tar.xz ice-694f735a9d58ddd967e8665e1689cd33174eb93f.zip |
facet path
Diffstat (limited to 'cpp/src/Ice/Object.cpp')
-rw-r--r-- | cpp/src/Ice/Object.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/src/Ice/Object.cpp b/cpp/src/Ice/Object.cpp index 6f54fc4768b..7bad13a59da 100644 --- a/cpp/src/Ice/Object.cpp +++ b/cpp/src/Ice/Object.cpp @@ -373,6 +373,30 @@ Ice::Object::ice_findFacet(const string& name) } } +ObjectPtr +Ice::Object::ice_findFacet(const vector<string>& path, int start) +{ + int sz = path.size(); + + if(start > sz) + { + return 0; + } + + if(start == sz) + { + return this; + } + + ObjectPtr facet = ice_findFacet(path[start]); + if(!facet) + { + return 0; + } + + return facet->ice_findFacet(path, start + 1); +} + DispatchStatus Ice::Blobject::__dispatch(Incoming& in, const Current& current) { |