Back to index

salome-smesh  6.5.0
Classes | Namespaces | Defines | Functions | Variables
UNV_Utilities.hxx File Reference
#include "SMESH_DriverUNV.hxx"
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>
#include <cstdlib>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  UNV::MESHDRIVERUNV_EXPORT

Namespaces

namespace  UNV

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

Variables

const size_t UNV::theMaxLineLen = 80

Define Documentation

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

Definition at line 150 of file UNV_Utilities.hxx.

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

Definition at line 148 of file UNV_Utilities.hxx.

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

Definition at line 157 of file UNV_Utilities.hxx.

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

Definition at line 146 of file UNV_Utilities.hxx.