Results 1 to 2 of 2

Thread: enumerate derived class names of a given slice class

  1. #1
    peterlspot is offline Registered User
    Name: Peter Lau
    Organization: Self
    Project: Study
    Join Date
    Nov 2007
    Posts
    13

    enumerate derived class names of a given slice class

    Wondering if there is already an API to retrieve the list of type IDs of all derived SLICE classes for a given SLICE class?

    For example, suppose one have a slice:

    class Food {};
    class BakedFood extends Food {};
    class Bread extends BakedFood{};
    The list of "Food" "BakedFood" "Bread" can be returned by calling the API with type ID "food".
    Peter Lau
    No pains, no gains.
    Lifelong programming ...

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Do you mean a reflection API? No, Ice does not have this. However, at runtime, you can get a list of all IDs from a given Ice::Object instance with ice_ids().

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 10-16-2009, 06:51 PM
  2. How to make abstract SLICE class
    By peterlspot in forum Help Center
    Replies: 2
    Last Post: 01-17-2008, 01:14 AM
  3. Replies: 4
    Last Post: 03-21-2006, 07:45 PM
  4. Intializing members of a slice generated class
    By Venkat Seeth in forum Help Center
    Replies: 3
    Last Post: 02-22-2005, 12:31 PM
  5. May slice struct contain class?
    By minifat in forum Help Center
    Replies: 1
    Last Post: 08-09-2004, 09:16 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
  •