Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

...

Localtab Group
Localtab
activetrue
titleC++11
Code Block
languagecpp
shared_ptr<PersonPrx> p = ...;
Address a = ...;

Ice::Context ctx;
ctx["write policy"] = "immediate";

p->setAddress(a, ctx);
Localtab
titleC++98
Code Block
languagecpp
PersonPrx p = ...;
Address a = ...;

Ice::Context ctx;
ctx["write policy"] = "immediate";

p->setAddress(a, ctx);
Localtab
titleC#
Code Block
languagec#
using System.Collections.Generic;

PersonPrx p = ...;
Address a = ...;

Dictionary<string, string> ctx = new Dictionary<string, string>();
ctx["write policy"] = "immediate";

p.setAddress(a, ctx);
Localtab
titleJava
Code Block
languagejava
PersonPrx p = ...;
Address a = ...;

java.util.Map<String, String> ctx = new java.util.HashMap<String, String>();
ctx.put("write policy", "immediate");

p.setAddress(a, ctx);
Localtab
titleJava Compat
Code Block
languagejava
PersonPrx p = ...;
Address a = ...;

java.util.Map<String, String> ctx = new java.util.HashMap<String, String>();
ctx.put("write policy", "immediate");

p.setAddress(a, ctx);
Localtab
titleMATLAB
Code Block
languagematlab
person = ...;
addr = ...;

ctx = containers.Map('KeyType', 'char', 'ValueType', 'char');
ctx('write policy') = 'immediate';

person.setAddress(addr, ctx);

On the server side, we can extract the policy value set from the Current object to influence how the implementation of setAddress works. For example:

...