17 #ifndef AGX_TASKMANAGER_H 18 #define AGX_TASKMANAGER_H 30 # pragma warning(push) 31 # pragma warning( disable : 4275 ) // warning C4275: non dll-interface class 32 # pragma warning( disable : 4251 ) // class X needs to have dll-interface to be used by clients of class Y 37 class TaskPluginImplementation;
43 TaskLoadError(
const String& path,
const String& implementation,
const ParameterTable& parameterList,
Device *device,
const char* message) :
std::runtime_error(message), m_path(path), m_implementation(implementation), m_parameterList(parameterList), m_device(device) {}
46 const String& getPath()
const;
47 const String& getImplementation()
const;
48 const Device *getDevice()
const;
67 const char *getPath()
const;
73 void registerModels();
75 size_t getNumImplementations()
const;
82 size_t m_numImplementations;
95 const char *getName()
const;
100 virtual void destroy(
Task *task) = 0;
111 template <
typename T>
138 SINGLETON_CLASSNAME_METHOD();
152 void loadCallback(TiXmlElement *eKernel);
156 void scan(
const String& path, ScanCallback callback);
157 void load(
const String& path);
158 void scanComponents(
const String& baseDir);
162 TaskPluginTable m_taskPathPluginTable;
163 TaskPluginTable m_taskNamePluginTable;
170 Name m_loadImplementation;
180 # pragma warning(pop)
Representation of a path, a list of name components.
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
TaskLoadError(const String &path, const String &implementation, const ParameterTable ¶meterList, Device *device, const char *message)
TaskPluginImplementationT(TaskPlugin *plugin, const char *name="")
A representation of a generic task.
Representation of a name string.
Vector containing 'raw' data.
virtual ~TaskPluginImplementationT()
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Templated callback with one argument.
virtual Task * create(Device *device)
HashTable< const char *, TaskPlugin * > TaskPluginTable
std::recursive_mutex ReentrantMutex
Type
Explicit list of device types.
virtual void destroy(Task *task)
Inheritance with partial specialization due to bug with ref_ptr containers.
An agx::Device is an abstract representation of a device on which data can be stored and processed...
virtual ~TaskPluginImplementation()
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...