I am trying to generate Java sources from VideoData.idl , from the Streaming Video demo. The Java sources got generated, but each const result in an individual Java class:

This is te content of one of the generated Java class source file MAX_BUFFER_SIZE.java
This is the original IDL file, with only the package name changed:
module net {
module entrypass {
module videodata {
module generated {
const string VIDEO_TOPIC = "VideoData";
const string QOS_LIBRARY = "RTIExampleQosLibrary";
const string QOS_PROFILE_STREAMING_DATA = "StreamingVideoData";
const string QOS_PROFILE_MULTICAST_DATA = "MulticastVideo";
const long MAX_BUFFER_SIZE = 1048576;
struct VideoStream {
long stream_id; //@key
unsigned long flags;
unsigned long sequence_number;
sequence <octet, MAX_BUFFER_SIZE> frame;
};
};
};
};
};
Does it mean all constants must be located it it's own struct?
| Attachment | Size |
|---|---|
| 1.74 KB | |
| 409 bytes |
Hi Hanxue,
I doubt that you are interested in this anymore since our last conversation, but just in case...
In IDL, the use of
module net {module entrypass {module videodata {module generated {