 |
AGX Dynamics
2.38.0.2
|
Go to the documentation of this file.
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);
170 Name m_loadImplementation;
180 # pragma warning(pop)
virtual ~TaskPluginImplementationT()
TaskPluginImplementationT(TaskPlugin *plugin, const char *name="")
Representation of a path, a list of name components.
virtual ~TaskPluginImplementation()
HashTable< const char *, TaskPlugin * > TaskPluginTable
Vector containing 'raw' data.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
A representation of a generic task.
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
Inheritance with partial specialization due to bug with ref_ptr containers.
virtual void destroy(Task *task)
Representation of a name string.
Templated callback with one argument.
std::recursive_mutex ReentrantMutex
An agx::Device is an abstract representation of a device on which data can be stored and processed.
TaskLoadError(const String &path, const String &implementation, const ParameterTable ¶meterList, Device *device, const char *message)
AgXString< std::string > String
virtual Task * create(Device *device)
Type
Explicit list of device types.
HashTable< String, UnresolvedParameterRef > ParameterTable