7 #ifndef __plugin_Registry_h__ 8 #define __plugin_Registry_h__ 35 virtual void initialize(
void);
53 Result manage(
const String &filename,
bool adaptname =
true,
54 bool manageDependencies =
true);
77 void substituteLibrary(
const String &oldDlName,
88 I32 listAvailable(
const String &pattern,
93 void prioritize(
const String &a_implementation,
99 BWORD quiet=FALSE)
const;
101 BWORD quiet=FALSE)
const;
103 BWORD quiet=FALSE)
const;
123 const String& name(
void)
const {
return m_name; }
125 void dump(
void)
const;
126 void dumpLibraries(
void)
const;
133 { m_dependents.push_back(spCounted); }
136 struct FactoryLocation
141 m_spLibrary(spLibrary),
142 m_factoryIndex(factoryIndex),
148 std::map<String,FactoryLocation*>
149 &factoryMap(
void) {
return m_factoryMap; }
156 BWORD quiet=FALSE)
const;
159 public TypeMaster::TypeLoader,
171 m_spLibrary(spLibrary),
172 m_factoriesAccepted(0)
173 { FEASSERT(spLibrary.isValid()); }
174 ~LoadedLibrary(
void);
177 U32 m_factoriesAccepted;
184 m_pFactoryLocation(NULL),
187 m_pFactoryLocation(NULL),
190 FactoryLocation* m_pFactoryLocation;
197 I32 findIndex(
const String &filename)
const;
198 void unmanage(U32 index);
207 std::map<String,FactoryLocation*> m_factoryMap;
Object level locking for thread safety.
Definition: Safe.h:216
kernel
Definition: namespace.dox:3
Dynamic Library Manager.
Definition: Registry.h:25
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Watches the usage of reference counted objects.
Definition: Tracker.h:25
Tracker & tracker(void)
Access the component tracker.
Definition: Registry.h:121
Automatically reference-counted string container.
Definition: String.h:128
void addDependent(sp< Counted > spCounted)
reference a Counted that is released just before unloading libraries
Definition: Registry.h:132
Wrapper for std::vector.
Definition: Array.h:21
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Base class providing an fe::Handle to the derived class.
Definition: Handled.h:209
Central access point for key pseudo-global objects.
Definition: Master.h:21
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192