AGX Dynamics  2.37.2.0
TypeMap.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #ifndef AGXDATA_TYPEMAP_H
18 #define AGXDATA_TYPEMAP_H
19 
20 #ifdef _MSC_VER
21 # pragma warning(push)
22 # pragma warning(disable: 4251) // warning C4251: class X needs to have dll-interface to be used by clients of class Y
23 #endif
24 
25 
26 #include <agx/String.h>
27 #include <agx/HashTable.h>
28 #include <agx/HashSet.h>
29 #include <agx/SetVector.h>
30 
31 namespace agx
32 {
33  class TiXmlElement;
34 }
35 
36 namespace agxData
37 {
39  {
41  TypeImplementation(const agx::String& impl, const agx::String& inc) : implementation(impl), include(inc) {}
44  };
45 
47 
48  // TypeMap buildTypeMap();
49 
51  agx::String AGXCORE_EXPORT getTypeImplementationName(const agx::String& abstractTypeName, agx::TiXmlElement *element, agx::SetVector<agx::String> *includeHash = nullptr);
52 
53  agx::String AGXCORE_EXPORT getIncludePrefix(agx::TiXmlElement *element);
55 }
56 
57 #ifdef _MSC_VER
58 # pragma warning(pop)
59 #endif
60 
61 
62 #endif /* AGXDATA_TYPEMAP_H */
agx::String AGXCORE_EXPORT getTypeImplementationName(const agx::String &abstractTypeName, agx::TiXmlElement *element, agx::SetVector< agx::String > *includeHash=nullptr)
agx::String implementation
Definition: TypeMap.h:42
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
agx::HashTable< agx::String, TypeImplementation > TypeMap
Definition: TypeMap.h:46
Contains classes for low level data storage for AGX.
Definition: Container.h:23
agx::String AGXCORE_EXPORT getIncludePrefix(const agx::String &rootPath)
Inheritance with partial specialization due to bug with ref_ptr containers.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
Definition: SetVector.h:37
#define AGXCORE_EXPORT
TypeImplementation(const agx::String &impl, const agx::String &inc)
Definition: TypeMap.h:41