Header of ...
More...
Go to the source code of this file.
Detailed Description
Header of ...
- Author:
- Jean-Christophe FABRE <fabrejc@supagro.inra.fr>
Define Documentation
Value:{ \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << std::endl; \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " OpenFLUID debugging mode is enabled" << std::endl; \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << std::endl; \
}
#define OFDBG_EVENT |
( |
|
eventptr | ) |
|
Value:{ \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " Event at " << (eventptr)->getDateTime().getAsISOString() << std::endl; \
openfluid::core::Event::EventInfosMap_t::iterator _M_DBG_EvInfoiter; \
for (_M_DBG_EvInfoiter = (eventptr)->getInfos().begin();_M_DBG_EvInfoiter != (eventptr)->getInfos().end();++_M_DBG_EvInfoiter) \
{ \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " - " << (*_M_DBG_EvInfoiter).first << " = " << (*_M_DBG_EvInfoiter).second.get() << std::endl; \
} \
}
#define OFDBG_EVENTCOLLECTION |
( |
|
eventcoll | ) |
|
Value:{ \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " Event collection size : " << eventcoll.getEventsList()->size() << std::endl; \
openfluid::core::EventsList_t::iterator _M_DBG_EvListiter; \
for (_M_DBG_EvListiter=(EvColl.getEventsList())->begin(); _M_DBG_EvListiter != (EvColl.getEventsList())->end(); _M_DBG_EvListiter++) \
{ \
OFDBG_EVENT(&(*_M_DBG_EvListiter)); \
} \
}
#define OFDBG_LOCATE { OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " File " << __FILE__ << ", Line " << __LINE__ << std::endl; } |
#define OFDBG_MESSAGE |
( |
|
stream | ) |
{ OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " " << stream << std::endl; } |
#define OFDBG_OUTSTREAM std::cout |
#define OFDBG_UNIT |
( |
|
unitptr | ) |
{ OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " Unit class " << (unitptr)->getClass() << ", ID " << (unitptr)->getID() << std::endl; } |
#define OFDBG_UNIT_EXTENDED |
( |
|
unitptr | ) |
|
Value:{ \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " Unit class " << (unitptr)->getClass() << ", ID " << (unitptr)->getID() << std::endl; \
std::vector<openfluid::core::InputDataName_t> _M_DBG_IDataNames = (unitptr)->getInputData()->getInputDataNames(); \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " - Input data: "; \
for (unsigned int i=0; i<_M_DBG_IDataNames.size();i++) OFDBG_OUTSTREAM << _M_DBG_IDataNames[i] << " , "; \
OFDBG_OUTSTREAM << std::endl; \
std::vector<openfluid::core::VariableName_t> _M_DBG_VarNames = (unitptr)->getVariables()->getVariablesNames(); \
OFDBG_OUTSTREAM << openfluid::config::DEBUG_PREFIX << " - Variables: "; \
for (unsigned int i=0; i<_M_DBG_VarNames.size();i++) OFDBG_OUTSTREAM << _M_DBG_VarNames[i] << " , "; \
OFDBG_OUTSTREAM << std::endl; \
}