Overview | The create_native method creates a new native definition in the Interface Repository. |
Original interface | CORBA module: Container Interface |
Exceptions | CORBA::SystemException |
Intended Usage
The create_native method creates a new native definition in the Interface Repository persistent database, and returns a pointer to a new NativeDef object associated with the native definition. A NativeDef object is typically used by the Interface Repository to represent an OMG IDL 'native'.
Syntax
NativeDef_ptr create_native ( const char* id, const char* name, const char* version );
Input parameters
Return values
Example
// assume the 'repository_ptr' object has//already been established CORBA::Repository * repository_ptr; CORBA::StructDef * structure_1; // create the new native definition called "native1". CORBA::NativeDef_ptr *new_native; new_native = repository_ptr->create_native ( "unique RepositoryID for this alias", "native1", "1.0" );