Go to the documentation of this file. 1 #ifndef SimTK_SIMBODY_COMMON_H_
2 #define SimTK_SIMBODY_COMMON_H_
56 #if defined(_WIN32) && defined(_MSC_VER)
57 #pragma warning(disable:4231) // need to use 'extern' template explicit instantiation
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) // i.e., a client of a shared library
68 #define SimTK_SIMBODY_EXPORT // Linux, Mac, MinGW
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);
288 #endif // SimTK_SIMBODY_COMMON_H_
static const SubtreeBodyIndex SubtreeAncestorIndex(0)
Definition: Exception.h:46
RepLevelException(const char *fn, int ln, String message)
Definition: Simbody/include/simbody/internal/common.h:247
LoopConstraintConstructionFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:275
void SimTK_version_simbody(int *major, int *minor, int *build)
static const MobilizedBodyIndex GroundIndex(0)
This is the MobilizedBodyIndex corresponding to the unique Ground body; its index is always zero.
This is a System that represents the dynamics of a particle moving along a smooth surface.
Definition: Assembler.h:37
Definition: Simbody/include/simbody/internal/common.h:245
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
NewtonRaphsonFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:266
Definition: Simbody/include/simbody/internal/common.h:264
Definition: Simbody/include/simbody/internal/common.h:235
Definition: Simbody/include/simbody/internal/common.h:273
APIMethodFailed(const char *fn, int ln, String method, String cause)
Definition: Simbody/include/simbody/internal/common.h:237
void SimTK_about_simbody(const char *key, int maxlen, char *value)
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
void setMessage(const std::string &msgin)
Definition: Exception.h:57
SimTK_DEFINE_UNIQUE_INDEX_TYPE(AssemblyConditionIndex)
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:255
Definition: Simbody/include/simbody/internal/common.h:253