#include <support/Package.h>
Inheritance diagram for BSharedObject:
Public Member Functions | |
BSharedObject (const SValue &src, const SPackage &package, attach_func attach=NULL) | |
Create a new BSharedObject, loading file as an add-on. | |
void | Detach () |
Detach this BSharedObject from the image it loaded. | |
SString | File () const |
Deprecated -- used Source() instead. | |
status_t | GetSymbolAt (int32_t index, SString *outName, int32_t *outSClass, void **outPtr) const |
Look up a symvol in the image by index. | |
status_t | GetSymbolFor (const char *name, int32_t sclass, void **outPtr) const |
Look up a symbol in the image by name. | |
image_id | ID () const |
Return the image_id this object is for. | |
SPackage | Package () |
SValue | Source () const |
Return source of this image. | |
Protected Member Functions | |
virtual void | InitAtom () |
Called the first time a strong reference is acquired. All significant object initialization should go here. | |
virtual | ~BSharedObject () |
|
Create a new BSharedObject, loading file as an add-on. The image will be unloaded when the BSharedObject is destoyed. |
|
|
|
Detach this BSharedObject from the image it loaded. This makes it so that any future SPackageSptr instantations in the image's code will fail, so that (eventually) all weak references on the image can go away. |
|
Deprecated -- used Source() instead.
|
|
Look up a symvol in the image by index.
|
|
Look up a symbol in the image by name.
|
|
Return the image_id this object is for. The given image will never be unloaded. |
|
Called the first time a strong reference is acquired. All significant object initialization should go here. You can override it and do any setup you need. Note that you do not need to call the SAtom implementation. (So you can derive from two different SAtom implementations and safely call down to both of their IncStrong() methods.)
Reimplemented from SAtom. Reimplemented in BProcess::ComponentImage. |
|
|
|
Return source of this image.
|