diff options
author | Marc Laukien <marc@zeroc.com> | 2004-11-12 17:17:33 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-11-12 17:17:33 +0000 |
commit | 2950dda69447b814ae45057af6e323ff04851608 (patch) | |
tree | 215fbe69d3c0bb15ffe5153965c6206d2086e9ce /cpp/src/Glacier2/ClientBlobject.cpp | |
parent | adding db directory (diff) | |
download | ice-2950dda69447b814ae45057af6e323ff04851608.tar.bz2 ice-2950dda69447b814ae45057af6e323ff04851608.tar.xz ice-2950dda69447b814ae45057af6e323ff04851608.zip |
fixed AllowCategories
Diffstat (limited to 'cpp/src/Glacier2/ClientBlobject.cpp')
-rw-r--r-- | cpp/src/Glacier2/ClientBlobject.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/cpp/src/Glacier2/ClientBlobject.cpp b/cpp/src/Glacier2/ClientBlobject.cpp index 67c4a75a563..6bc84cc2b0f 100644 --- a/cpp/src/Glacier2/ClientBlobject.cpp +++ b/cpp/src/Glacier2/ClientBlobject.cpp @@ -17,26 +17,12 @@ using namespace Glacier2; Glacier2::ClientBlobject::ClientBlobject(const CommunicatorPtr& communicator, const IceInternal::RoutingTablePtr& routingTable, - const string& allow) : + const StringSeq& allowCategories) : Glacier2::Blobject(communicator, false), _routingTable(routingTable), + _allowCategories(allowCategories), _rejectTraceLevel(_properties->getPropertyAsInt("Glacier2.Client.Trace.Reject")) { - vector<string>& allowCategories = const_cast<vector<string>&>(_allowCategories); - - const string ws = " \t"; - string::size_type current = allow.find_first_not_of(ws, 0); - while(current != string::npos) - { - string::size_type pos = allow.find_first_of(ws, current); - string::size_type len = (pos == string::npos) ? string::npos : pos - current; - string category = allow.substr(current, len); - allowCategories.push_back(category); - current = allow.find_first_not_of(ws, pos); - } - - sort(allowCategories.begin(), allowCategories.end()); // Must be sorted. - allowCategories.erase(unique(allowCategories.begin(), allowCategories.end()), allowCategories.end()); } Glacier2::ClientBlobject::~ClientBlobject() @@ -53,7 +39,7 @@ Glacier2::ClientBlobject::destroy() } void -Glacier2::ClientBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& amdCB, const vector<Byte>& inParams, +Glacier2::ClientBlobject::ice_invoke_async(const Ice::AMD_Object_ice_invokePtr& amdCB, const ByteSeq& inParams, const Current& current) { assert(_routingTable); // Destroyed? |