src/DriverUNV/UNV_Utilities.hxx File Reference

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <stdexcept>
#include <cassert>

Include dependency graph for UNV_Utilities.hxx:

Go to the source code of this file.

Namespaces

namespace  UNV

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;
 

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

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

#define EXCEPTION TYPE,
MSG   ) 
 

Value:

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