diff options
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) { |