SALOME - SMESH
UNV_Utilities.hxx File Reference
#include "SMESH_DriverUNV.hxx"
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>
#include <cstdlib>
Include dependency graph for UNV_Utilities.hxx:

Go to the source code of this file.

Data Structures

class  UNV::PrefixPrinter
 

Namespaces

 UNV
 

Macros

#define MESSAGE(msg)   std::cout<<__FILE__<<"["<<__LINE__<<"]::"<<msg<<endl;
 
#define BEGMSG(msg)   std::cout<<UNV::PrefixPrinter::GetPrefix()<<msg
 
#define ADDMSG(msg)   std::cout<<msg
 
#define EXCEPTION(TYPE, MSG)
 

Functions

bool UNV::beginning_of_dataset (std::istream &in_file, const std::string &ds_name)
 
double UNV::D_to_e (std::string &number)
 Method for converting exponential notation from "D" to "e", for example 3.141592654D+00 –> 3.141592654e+00 in order to make it readable for C++. More...
 
bool UNV::check_file (const std::string theFileName)
 

Macro Definition Documentation

◆ MESSAGE

#define MESSAGE (   msg)    std::cout<<__FILE__<<"["<<__LINE__<<"]::"<<msg<<endl;

Definition at line 118 of file UNV_Utilities.hxx.

◆ BEGMSG

#define BEGMSG (   msg)    std::cout<<UNV::PrefixPrinter::GetPrefix()<<msg

Definition at line 120 of file UNV_Utilities.hxx.

◆ ADDMSG

#define ADDMSG (   msg)    std::cout<<msg

Definition at line 122 of file UNV_Utilities.hxx.

◆ EXCEPTION

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

Definition at line 129 of file UNV_Utilities.hxx.