1 #ifndef SimTK_SIMBODY_COMMON_H_
2 #define SimTK_SIMBODY_COMMON_H_
58 #pragma warning(disable:4231) // need to use 'extern' template explicit instantiation
60 #if defined(SimTK_SIMBODY_BUILDING_SHARED_LIBRARY)
61 #define SimTK_SIMBODY_EXPORT __declspec(dllexport)
64 #pragma warning(disable:4661)
66 #elif defined(SimTK_SIMBODY_BUILDING_STATIC_LIBRARY) || defined(SimTK_USE_STATIC_LIBRARIES)
67 #define SimTK_SIMBODY_EXPORT
69 #define SimTK_SIMBODY_EXPORT __declspec(dllimport) // i.e., a client of a shared library
72 #define SimTK_SIMBODY_EXPORT // Linux, Mac
229 namespace Exception {
236 setMessage(method +
" failed because:\n " + cause);
256 +
" can't represent the given " + quantity +
" to machine precision");
274 setMessage(
"Loop constraint construction failure: " + msg);
285 #endif // SimTK_SIMBODY_COMMON_H_
LoopConstraintConstructionFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:272
This is for arrays indexed by mobilized body number within a subsystem (typically the SimbodyMatterSu...
SimTK_DEFINE_UNIQUE_INDEX_TYPE(AssemblyConditionIndex)
Definition: Simbody/include/simbody/internal/common.h:270
static const SubtreeBodyIndex SubtreeAncestorIndex(0)
Definition: Simbody/include/simbody/internal/common.h:232
void SimTK_version_simbody(int *major, int *minor, int *build)
void setMessage(const std::string &msgin)
Definition: Exception.h:56
static const MobilizedBodyIndex GroundIndex(0)
This is the MobilizedBodyIndex corresponding to the unique Ground body; its index is always zero...
APIMethodFailed(const char *fn, int ln, String method, String cause)
Definition: Simbody/include/simbody/internal/common.h:234
Definition: Simbody/include/simbody/internal/common.h:242
Definition: Simbody/include/simbody/internal/common.h:261
This is for arrays indexed by constraint number within a subsystem (typically the SimbodyMatterSubsys...
Includes internal headers providing declarations for the basic SimTK Core classes, including Simmatrix.
This type represents the index of a Force element within its subsystem.
NewtonRaphsonFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:263
Definition: Exception.h:45
MobilizedBodyIndex MobodIndex
This is the approved abbeviation for MobilizedBodyIndex. Feel free to use it if you get tired of typi...
Definition: Simbody/include/simbody/internal/common.h:100
void SimTK_about_simbody(const char *key, int maxlen, char *value)
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:62
MobilizerCantExactlyRepresentRequestedQuantity(const char *fn, int ln, String method, MobilizedBodyIndex body, String quantity)
Definition: Simbody/include/simbody/internal/common.h:252
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:72
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...
RepLevelException(const char *fn, int ln, String message)
Definition: Simbody/include/simbody/internal/common.h:244
Definition: Simbody/include/simbody/internal/common.h:250
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...