Macros
debug.hpp File Reference
#include <iostream>
#include <openfluid/config.hpp>
Include dependency graph for debug.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OFDBG_ENABLED
 
#define OFDBG_OUTSTREAM
 
#define OFDBG_LOCATE
 
#define OFDBG_BANNER
 
#define OFDBG_MESSAGE(stream)
 
#define OFDBG_UNIT(unitptr)
 
#define OFDBG_UNIT_EXTENDED(unitptr)
 
#define OFDBG_EVENT(eventptr)
 
#define OFDBG_EVENTCOLLECTION(eventcoll)
 

Detailed Description

Author
Jean-Christophe FABRE jean-.nosp@m.chri.nosp@m.stoph.nosp@m.e.fa.nosp@m.bre@s.nosp@m.upag.nosp@m.ro.in.nosp@m.ra.f.nosp@m.r

Example of use:

{
openfluid::core::DateTime BeginDate,EndDate;
BeginDate = OPENFLUID_GetCurrentDate();
EndDate = OPENFLUID_GetCurrentDate() + OPENFLUID_GetDefaultDeltaT() - 1;
{
EvColl.clear();
OPENFLUID_GetEvents(TU,BeginDate,EndDate,EvColl);
}
return DefaultDeltaT();
}

Macro Definition Documentation

◆ OFDBG_BANNER

#define OFDBG_BANNER

◆ OFDBG_ENABLED

#define OFDBG_ENABLED

◆ OFDBG_EVENT

#define OFDBG_EVENT (   eventptr)

Displays information about the given event

◆ OFDBG_EVENTCOLLECTION

#define OFDBG_EVENTCOLLECTION (   eventcoll)

Displays information about the given event collection

◆ OFDBG_LOCATE

#define OFDBG_LOCATE

Displays file/line location where the macro is called

◆ OFDBG_MESSAGE

#define OFDBG_MESSAGE (   stream)

Displays the given message

◆ OFDBG_OUTSTREAM

#define OFDBG_OUTSTREAM

◆ OFDBG_UNIT

#define OFDBG_UNIT (   unitptr)

Displays information about the given spatial unit

◆ OFDBG_UNIT_EXTENDED

#define OFDBG_UNIT_EXTENDED (   unitptr)

Displays extended information about the given spatial unit