1 #ifndef SimTK_SIMBODY_COMMON_H_
2 #define SimTK_SIMBODY_COMMON_H_
56 #if defined(_WIN32) && defined(_MSC_VER)
57 #pragma warning(disable:4231)
58 #if defined(SimTK_SIMBODY_BUILDING_SHARED_LIBRARY)
59 #define SimTK_SIMBODY_EXPORT __declspec(dllexport)
61 #pragma warning(disable:4661)
62 #elif defined(SimTK_SIMBODY_BUILDING_STATIC_LIBRARY) || defined(SimTK_USE_STATIC_LIBRARIES)
63 #define SimTK_SIMBODY_EXPORT
65 #define SimTK_SIMBODY_EXPORT __declspec(dllimport)
68 #define SimTK_SIMBODY_EXPORT
232 namespace Exception {
239 setMessage(method +
" failed because:\n " + cause);
259 +
" can't represent the given " + quantity +
" to machine precision");
277 setMessage(
"Loop constraint construction failure: " + msg);
Includes internal headers providing declarations for the basic SimTK Core classes,...
void SimTK_version_simbody(int *major, int *minor, int *build)
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
void SimTK_about_simbody(const char *key, int maxlen, char *value)
This is for arrays indexed by constraint number within a subsystem (typically the SimbodyMatterSubsys...
Definition: Simbody/include/simbody/internal/common.h:235
APIMethodFailed(const char *fn, int ln, String method, String cause)
Definition: Simbody/include/simbody/internal/common.h:237
Definition: Exception.h:46
void setMessage(const std::string &msgin)
Definition: Exception.h:57
Definition: Simbody/include/simbody/internal/common.h:273
LoopConstraintConstructionFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:275
Definition: Simbody/include/simbody/internal/common.h:253
MobilizerCantExactlyRepresentRequestedQuantity(const char *fn, int ln, String method, MobilizedBodyIndex body, String quantity)
Definition: Simbody/include/simbody/internal/common.h:255
Definition: Simbody/include/simbody/internal/common.h:264
NewtonRaphsonFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:266
Definition: Simbody/include/simbody/internal/common.h:245
RepLevelException(const char *fn, int ln, String message)
Definition: Simbody/include/simbody/internal/common.h:247
This type represents the index of a Force element within its subsystem.
This is for arrays indexed by mobilized body number within a subsystem (typically the SimbodyMatterSu...
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...
SimTK::String is a plug-compatible std::string replacement (plus some additional functionality) inten...
Definition: String.h:65
static const MobilizedBodyIndex GroundIndex(0)
This is the MobilizedBodyIndex corresponding to the unique Ground body; its index is always zero.
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:96
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
SimTK_DEFINE_UNIQUE_INDEX_TYPE(AssemblyConditionIndex)
static const SubtreeBodyIndex SubtreeAncestorIndex(0)