AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Json.h File Reference
#include <agx/debug.h>
#include <agx/PushDisableWarnings.h>
#include <external/json/json.h>
#include <agx/PopDisableWarnings.h>

Go to the source code of this file.

Namespaces

 agx
 Namespace agx contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define agxJsonVerify(x, element)
 
#define agxJsonVerify1(x, element, msg)
 
#define agxJsonVerifyN(x, element, format,...)
 

Macro Definition Documentation

#define agxJsonVerify (   x,
  element 
)
Value:
if (!(x)) \
{ \
std::stringstream __stream; \
__stream << agx::buildErrorString("[%s:%u] agxVerify failed: `%s'", "", __FILE__, __LINE__, #x) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl; \
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
#define agxThrow
Definition: debug.h:109

Definition at line 31 of file Json.h.

#define agxJsonVerify1 (   x,
  element,
  msg 
)
Value:
if (!(x)) \
{ \
std::stringstream __stream; \
__stream << agx::buildErrorString("[%s:%u] agxVerify failed: `%s', ", "%s", __FILE__, __LINE__, #x, msg) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl; \
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
#define agxThrow
Definition: debug.h:109

Definition at line 44 of file Json.h.

#define agxJsonVerifyN (   x,
  element,
  format,
  ... 
)
Value:
if (!(x)) \
{ \
std::stringstream __stream; \
__stream << agx::buildErrorString("[%s:%u] agxVerify failed: `%s', ", format, __FILE__, __LINE__, #x, ##__VA_ARGS__) << std::endl; \
__stream << "==============================================================================" << std::endl; \
__stream << agxJson::StyledWriter().write(element); \
__stream << "==============================================================================" << std::endl; \
const std::string& __string = __stream.str(); \
std::cerr << __string << std::endl; \
agxThrow std::runtime_error(__string); \
}
AGXCORE_EXPORT std::string buildErrorString(const char *baseFormat, std::string msgFormat,...)
#define agxThrow
Definition: debug.h:109

Definition at line 57 of file Json.h.