[omniORB] function and sequence

Ronald Andrae wir04fge at studserv.uni-leipzig.de
Wed Jan 30 15:15:37 GMT 2008


Hello,

I have function, which returns a variable array (sequence).

My IDL:

typedef sequence<string> Feld;

interface Student{
    Feld getEmails();
};

My implementation:

class Student_impl :  public POA_Student
{
public:

    Feld * getEmails() {
        Feld_var temp = new Feld;
        temp->length(3);
        temp[0] = "klaus at uni.de";
        temp[1] = "gustav at uni.de";
        temp[2] = "dieter at uni.de";
        return temp;
    }
};

There is a problem with the types Feld and Feld_var. Have anyone an 
idea, how i can fix this problem, so that I can use the array at the 
client side?

Thanks



More information about the omniORB-list mailing list