Archived

This forum has been archived. Please start a new discussion on GitHub.

how get services descriptor?

Hi ,

I work an application in Qt4 like iceGridGui ( without use icegridadmi tool ).

by IceGrid::AdminPrx I get info about application, node and server , but i can't find info about services.

How I can do it?

thanks
Andrew

Comments

  • benoit
    benoit Rennes, France
    Hi Andrew,

    Service descriptors are accessible through the "services" attribute of the IceBoxDescriptor class. You can get a reference on the IceBox descriptor by upcasting reference of the server descriptor, for example:
    // C++
    ServerDescriptorPtr server = ...;
    IceBoxDescriptorPtr iceBox = IceBoxDescriptorPtr::dynamicCast(server);
    if(iceBox)
    {
        cout << iceBox.services.length() << endl;
    }
    

    Cheers,
    Benoit.