Version: 9.12.0
MED_Utilities.hxx File Reference
#include "MED_WrapperDef.hxx"
#include "utilities.h"
#include <iostream>
#include <sstream>
#include <string>
#include <string.h>
#include <stdexcept>
Include dependency graph for MED_Utilities.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  MED::PrefixPrinter
 

Namespaces

 MED
 

Macros

#define MSG(msg)   if(SALOME::VerbosityActivated()) std::cout<<MED::PrefixPrinter::GetPrefix()<<msg<<" ("<<__FILE__<<" ["<<__LINE__<<"])\n"; else (void)0
 
#define BEGMSG(msg)   if(SALOME::VerbosityActivated()) std::cout<<MED::PrefixPrinter::GetPrefix()<<msg; else (void)0
 
#define INITMSGA(lev, msg)   if(SALOME::VerbosityActivated()) { MED::PrefixPrinter aPrefixPrinter_##lev(true); BEGMSG(msg); } else (void)0
 
#define INITMSG(msg)   INITMSGA(,msg)
 
#define ADDMSG(msg)   if(SALOME::VerbosityActivated()) std::cout<<msg; else (void)0
 
#define EXCEPTION(TYPE, MSG)
 

Macro Definition Documentation

◆ ADDMSG

#define ADDMSG (   msg)    if(SALOME::VerbosityActivated()) std::cout<<msg; else (void)0

◆ BEGMSG

#define BEGMSG (   msg)    if(SALOME::VerbosityActivated()) std::cout<<MED::PrefixPrinter::GetPrefix()<<msg; else (void)0

◆ EXCEPTION

#define EXCEPTION (   TYPE,
  MSG 
)
Value:
{\
std::ostringstream aStream;\
aStream<<__FILE__<<"["<<__LINE__<<"]::"<<MSG;\
throw TYPE(aStream.str().c_str());\
}
#define MSG(msg)
Definition: MED_Utilities.hxx:49

◆ INITMSG

#define INITMSG (   msg)    INITMSGA(,msg)

◆ INITMSGA

#define INITMSGA (   lev,
  msg 
)    if(SALOME::VerbosityActivated()) { MED::PrefixPrinter aPrefixPrinter_##lev(true); BEGMSG(msg); } else (void)0

◆ MSG

#define MSG (   msg)    if(SALOME::VerbosityActivated()) std::cout<<MED::PrefixPrinter::GetPrefix()<<msg<<" ("<<__FILE__<<" ["<<__LINE__<<"])\n"; else (void)0