Public Methods | |
int | init () |
Initializes the wrapper. | |
int | storeComponent (unsigned char *theComponent, int size, char *xmlDescription, bool overWrite) |
Store a component in the CR. | |
int | deleteComponent (char *xmlDescription) |
Remove a component from the CR. | |
int | getComponent (char *xmlDescription, unsigned char **theComponent) |
Retrieve a component from the CR by XML description. | |
int | getComponent (ComponentDescriptor description, unsigned char **theComponent) |
Retrieve a component from the CR by component descriptor. | |
int | queryComponents (ComponentDescriptor query, ComponentDescriptor **results, int &numResults) |
Search CR for components matching certain criteria. |
This class provides access to the component repository.
|
Remove a component from the CR. If the XML description does not uniquely identify a component, error return with CR_E_DESCRIPTION_NOT_UNIQUE. Component uniquely identified by name, os, and processor.
|
|
Retrieve a component from the CR by component descriptor. Component descriptor must uniquely identify a component (name, os, and processor). Caller is responsible for freeing the theComponent when done with OS::free(), any other free() results in undefined behavior (i.e. YMMV), usually a memory exception under WinNT.
|
|
Retrieve a component from the CR by XML description. XML description must uniquely identify a component (name, os, and processor). Caller is responsible for freeing the theComponent when done with OS::free(), any other free() results in undefined behavior (i.e. YMMV), usually a memory exception under WinNT.
|
|
Initializes the wrapper. If the initialization should fail, it will return UIC_ERROR. Failure can be due to CR or name service not running, unable to resolve CR or name service, or Active Space is down.
|
|
Search CR for components matching certain criteria. A descriptor matching no components will return an exception.
|
|
Store a component in the CR. The XML description must be unique to the component. Unique is defined as no other component description with the same name, processor, and os. These three properties uniquely identify a component.
|