Results 1 to 3 of 3

Thread: Dynamic type knowledge

  1. #1
    kovacm is offline Registered User
    Name: Michal Kovac
    Organization: Charles University in Prague
    Project: Ferda Data Mining
    Join Date
    Jan 2005
    Posts
    60

    Question Dynamic type knowledge

    I would like this:

    My C# application will connect many ice objects together and invoke some methods of these objects. The problem is, that it will not know before, how objects will exactly look like.These objects will make other programmers. I would like to make it for them simplest it can be.

    If I would like to make it for them easy, I think slice for those objects can be something like:
    Code:
    module something {
      interface Aaa extends MyBasicObject {
        //methods for connecting to other object (every this method will start with setInterface)
        void setInterfaceSimpleBbb(*Bbb bbbName);
    
        //methods for invoking (every this method will start with invoke)
        void invokeShow();
      }
    
      interface Bbb extends MyBasicObject {
      //something
      }
    }
    My application dont know this slice definition at compilation, only MyBasicObject I will know. And now it have to know that there exist object Aaa which needs one interface Bbb, which I can set by setInterfaceSimpleBbb. So if I understand I can over IcePack::Query get all object of type MyBasicObject. But after that, how can I read all object information and how can a know that setInterfaceSimpleBbb has one parametr of type *Bbb?

    Thank you
    Last edited by kovacm; 01-28-2005 at 10:21 AM.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Ice doesn't support any reflection API to inspect the Slice definitions at runtime. You could use the C# reflection API and inspect the generated code. However, if we change the format of the generated code, you'll have to change your code, so that's not ideal.

    We could put such a reflection API on our TODO list. If you have a commercial need for such a feature, please contact us at info@zeroc.com.

    Benoit.
    Last edited by benoit; 01-28-2005 at 12:21 PM.

  3. #3
    kovacm is offline Registered User
    Name: Michal Kovac
    Organization: Charles University in Prague
    Project: Ferda Data Mining
    Join Date
    Jan 2005
    Posts
    60

    It's bad

    Thank you.

    Quote Originally Posted by benoit
    Ice doesn't support any reflection API to inspect the Slice definitions at runtime.
    It is bad, I think that if you have dynamic invokation it is good also to have this for "really dynamic work with objects".

    Quote Originally Posted by benoit
    We could put such a reflection API on our TODO list.
    Yes, I think it is good thing to do.

    This application will not be commercial and now I can do it ugly :-( .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dynamic Monitoring
    By kuzlovsky12 in forum Help Center
    Replies: 8
    Last Post: 03-13-2009, 06:09 AM
  2. Dynamic Ice for Python
    By Edward Bishop in forum Help Center
    Replies: 3
    Last Post: 05-03-2007, 07:21 PM
  3. dynamic balancing policy
    By Greenhippo in forum Help Center
    Replies: 3
    Last Post: 12-06-2006, 05:13 PM
  4. dynamic replicaGroup registration
    By Greenhippo in forum Help Center
    Replies: 2
    Last Post: 11-22-2006, 04:18 AM
  5. Dynamic dispatch demo
    By orphean in forum Help Center
    Replies: 3
    Last Post: 12-21-2005, 02:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •