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

Defines

#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++.
bool UNV::check_file (const std::string theFileName)

Define Documentation

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

Definition at line 118 of file UNV_Utilities.hxx.

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

Definition at line 120 of file UNV_Utilities.hxx.

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

Definition at line 122 of file UNV_Utilities.hxx.

#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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines