Version: 9.12.0
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:
This graph shows which files directly or indirectly include this file:

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)
 
std::string UNV::read_line (std::ifstream &in_stream, const bool next=true)
 reads a whole line More...
 

Variables

const size_t UNV::theMaxLineLen = 82
 

Macro Definition Documentation

◆ ADDMSG

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

◆ BEGMSG

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

◆ EXCEPTION

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

◆ MESSAGE

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