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 236 namespace Exception {
243 setMessage(method +
" failed because:\n " + cause);
263 +
" can't represent the given " + quantity +
" to machine precision");
281 setMessage(
"Loop constraint construction failure: " + msg);
292 #endif // SimTK_SIMBODY_COMMON_H_ LoopConstraintConstructionFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:279
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:277
static const SubtreeBodyIndex SubtreeAncestorIndex(0)
Definition: Simbody/include/simbody/internal/common.h:239
void SimTK_version_simbody(int *major, int *minor, int *build)
void setMessage(const std::string &msgin)
Definition: Exception.h:56
This is the top-level SimTK namespace into which all SimTK names are placed to avoid collision with o...
Definition: Assembler.h:37
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:241
Definition: Simbody/include/simbody/internal/common.h:249
Definition: Simbody/include/simbody/internal/common.h:268
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:270
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:259
#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:251
Definition: Simbody/include/simbody/internal/common.h:257
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...