| 1 | // File: SendingContext.idl
|
|---|
| 2 | // CORBA 2.5.1, Chapter 5
|
|---|
| 3 |
|
|---|
| 4 | #ifndef _SENDING_CONTEXT_IDL_
|
|---|
| 5 | #define _SENDING_CONTEXT_IDL_
|
|---|
| 6 |
|
|---|
| 7 | #ifdef _PRE_3_0_COMPILER_
|
|---|
| 8 | #include <orb.idl>
|
|---|
| 9 | #pragma prefix "omg.org"
|
|---|
| 10 | #else
|
|---|
| 11 | import ::CORBA;
|
|---|
| 12 | #endif // _PRE_3_0_COMPILER_
|
|---|
| 13 |
|
|---|
| 14 | module SendingContext {
|
|---|
| 15 |
|
|---|
| 16 | #ifndef _PRE_3_0_COMPILER_
|
|---|
| 17 | typeprefix SendingContext "omg.org";
|
|---|
| 18 | #endif // _PRE_3_0_COMPILER_
|
|---|
| 19 |
|
|---|
| 20 | interface RunTime {}; // so that we can provide more
|
|---|
| 21 | // sending context run time
|
|---|
| 22 | // services in the future
|
|---|
| 23 |
|
|---|
| 24 | interface CodeBase: RunTime {
|
|---|
| 25 | typedef string URL; // blank-separated list of one or more URLs
|
|---|
| 26 | typedef sequence<URL> URLSeq;
|
|---|
| 27 | typedef sequence<CORBA::ValueDef::FullValueDescription> ValueDescSeq;
|
|---|
| 28 |
|
|---|
| 29 | // Operation to obtain the IR from the sending context
|
|---|
| 30 | CORBA::Repository get_ir();
|
|---|
| 31 |
|
|---|
| 32 | // Operations to obtain a location of the implementation code
|
|---|
| 33 | URL implementation( in CORBA::RepositoryId x);
|
|---|
| 34 | URL implementationx( in CORBA::RepositoryId x);
|
|---|
| 35 | URLSeq implementations( in CORBA::RepositoryIdSeq x);
|
|---|
| 36 |
|
|---|
| 37 | // Operations to obtain complete meta information about a Value
|
|---|
| 38 | // This is just a performance optimization the IR can provide
|
|---|
| 39 | // the same information
|
|---|
| 40 | CORBA::ValueDef::FullValueDescription meta( in CORBA::RepositoryId x);
|
|---|
| 41 | ValueDescSeq metas(in CORBA::RepositoryIdSeq x);
|
|---|
| 42 |
|
|---|
| 43 | // To obtain a type graph for a value type
|
|---|
| 44 | // same comment as before the IR can provide similar
|
|---|
| 45 | // information
|
|---|
| 46 | CORBA::RepositoryIdSeq bases( in CORBA::RepositoryId x);
|
|---|
| 47 | };
|
|---|
| 48 | };
|
|---|
| 49 | #endif // _SENDING_CONTEXT_IDL_
|
|---|