2-133
DSOM Framework Reference
Example
#include <somd.h>
#include <repostry.h>
#include <intfacdf.h>
Environment ev;
ReferenceData id;
InterfaceDef intfdef;
SOMDObject objref;
string fname; /* file name to be saved with reference */
...
/* create the id for the reference */
id._maximum = id._length = strlen(fname)+1;
id._buffer = (string) SOMMalloc(strlen(fname)+1);
strcpy(id._buffer,fname);
/* get the interface def object for interface Foo*/
intfdef = _lookup_id(SOM_InterfaceRepository, &ev, ”Foo”);
objref = _create_constant(SOMD_SOMOAObject,
&ev, id, intfdef, SOMD_ImplDefObject);
Original Class
SOMOA
Related Information
Methods: create, create_SOM_ref, dispose, get_id, is_constant
Comentários a estes Manuais