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_ LoopConstraintConstructionFailure(const char *fn, int ln, String msg)
Definition: Simbody/include/simbody/internal/common.h:275
 
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:273
 
static const SubtreeBodyIndex SubtreeAncestorIndex(0)
 
Definition: Simbody/include/simbody/internal/common.h:235
 
void SimTK_version_simbody(int *major, int *minor, int *build)
 
void setMessage(const std::string &msgin)
Definition: Exception.h:57
 
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:237
 
Definition: Simbody/include/simbody/internal/common.h:245
 
Definition: Simbody/include/simbody/internal/common.h:264
 
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:266
 
Definition: Exception.h:46
 
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
 
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:255
 
#define SimTK_SIMBODY_EXPORT
Definition: Simbody/include/simbody/internal/common.h:68
 
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:247
 
Definition: Simbody/include/simbody/internal/common.h:253
 
The Mobilizer associated with each MobilizedBody, once modeled, has a specific number of generalized ...