Home Help Center

IdentitySeq ?

sylvainsylvain Member Sylvain FaselOrganization: university of GenevaProject: quantum cryptographic systems ✭✭
Hi,

I am playing a little bit with Freeze::Map. For now, I have an .ice file that defines somethings like:
"
interface Patient
{
//some operations
};

sequence<Patient*> PatientPrxSeq;
*

I know how to create a Freeze::Map with my PatientPrxSeq as value, and it works perfectly.

Now I realize that it would be better for me to store Identity instead of proxies, so I tried to define
"
sequence<Identity> PatientIdSeq
"
with the idea to create a Freeze::Map with PatientIdSeq as value. But I was surprised to find that "Identity" is not defined in slice (not like Object).

I know how to create a Freeze::Map with Ice::Identity as value, but how could I do with seqence<Identity> for value ??

Thanks in advance

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Ice::Identity is defined in Slice, you just need to include <Ice/Identity.ice>. Note that you will also need to specify the --ice option to your Slice compiler, so that it allows you to use the "Ice" symbol in Slice definitions.
  • sylvainsylvain Member Sylvain FaselOrganization: university of GenevaProject: quantum cryptographic systems ✭✭
    Hi,

    one more "oops, I am sorry" to my account. Tell me when I am about to exceed my quota.

    Thanks a lot for your answer, and for providing Ice, that is a really really good product.
Sign In or Register to comment.