Exemple #1
0
    // Add servant to ASM and parent's _contents map.

    public void activate(Ice.ObjectAdapter a)
    {
        NodePrx thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id));

        if (_parent != null)
        {
            _parent.addChild(thisNode);
        }
    }
Exemple #2
0
        public static NodePrx uncheckedCast(global::Ice.ObjectPrx b)
        {
            if (b == null)
            {
                return(null);
            }
            NodePrx r = b as NodePrx;

            if (r == null)
            {
                NodePrxHelper h = new NodePrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Exemple #3
0
        public static NodePrx checkedCast(global::Ice.ObjectPrx b, global::System.Collections.Generic.Dictionary <string, string> ctx)
        {
            if (b == null)
            {
                return(null);
            }
            NodePrx r = b as NodePrx;

            if ((r == null) && b.ice_isA(ice_staticId(), ctx))
            {
                NodePrxHelper h = new NodePrxHelper();
                h.iceCopyFrom(b);
                r = h;
            }
            return(r);
        }
Exemple #4
0
 // addChild is called by the child in order to add
 // itself to the _contents member of the parent
 public void addChild(NodePrx child)
 {
     _contents.Add(child);
 }
Exemple #5
0
 // addChild is called by the child in order to add
 // itself to the _contents member of the parent
 public void addChild(NodePrx child)
 {
     _contents.Add(child);
 }
Exemple #6
0
 public static void write(global::Ice.OutputStream ostr, NodePrx v)
 {
     ostr.writeProxy(v);
 }