Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfError.h File Reference
#include <tf_port.h>
#include <exception>
#include <string>
#include <vector>
Include dependency graph for tfError.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TissueForge::Error
 

Namespaces

namespace  TissueForge
 Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
 

Macros

#define tf_error(code, msg)   errSet(code, msg, __LINE__, __FILE__, TF_FUNCTION)
 
#define tf_exp(e)   expSet(e, "", __LINE__, __FILE__, TF_FUNCTION)
 
#define TF_RETURN_EXP(e)   expSet(e, "", __LINE__, __FILE__, TF_FUNCTION); return NULL
 

Typedefs

typedef void(* TissueForge::ErrorCallback) (const Error &err)
 

Functions

unsigned int TissueForge::addErrorCallback (ErrorCallback &cb)
 Register an error callback.
 
HRESULT TissueForge::removeErrorCallback (const unsigned int &cb_id)
 Remove an error callback from the registry.
 
HRESULT TissueForge::clearErrorCallbacks ()
 Remove all error callbacks from the registry.
 
HRESULT TissueForge::errSet (HRESULT code, const char *msg, int line, const char *file, const char *func)
 
HRESULT TissueForge::expSet (const std::exception &, const char *msg, int line, const char *file, const char *func)
 
bool TissueForge::errOccurred ()
 
void TissueForge::errClear ()
 
std::string TissueForge::errStr (const Error &err)
 
std::vector< ErrorTissueForge::errGetAll ()
 
Error TissueForge::errGetFirst ()
 
void TissueForge::errClearFirst ()
 
Error TissueForge::errPopFirst ()
 
std::ostream & operator<< (std::ostream &os, const TissueForge::Error &err)