Version: 7.8.0
Basics_Utils.hxx File Reference
#include "SALOME_Basics.hxx"
#include <string>
#include <iostream>
#include <sys/time.h>
#include <sstream>
#include <stdlib.h>
Include dependency graph for Basics_Utils.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Kernel_Utils::Localizer
 

Namespaces

namespace  Kernel_Utils
 

Macros

#define START_TIMING(name)
 
#define END_TIMING(name, NUMBER)
 
#define STDLOG(msg)
 
#define LOG   STDLOG
 

Enumerations

enum  Kernel_Utils::GUIDtype { Kernel_Utils::DefUserID = 1, Kernel_Utils::ObjectdID }
 GUID type. More...
 

Functions

std::string Kernel_Utils::GetHostname ()
 
std::string Kernel_Utils::GetGUID (GUIDtype)
 Get predefined GUID. More...
 
void Kernel_Utils::print_traceback ()
 
template<class T >
std::string ToString (const T &arg)
 
template<class T >
double ToDouble (const T &arg)
 

Macro Definition Documentation

#define END_TIMING (   name,
  NUMBER 
)
Value:
name##tcount=name##tcount+1;gettimeofday(&name##tv,0); \
name##cumul=name##cumul+name##tv.tv_usec+name##tv.tv_sec*1000000 -name##tt0; \
if(name##tcount==NUMBER){ \
std::cerr <<__FILE__<<":"<<__LINE__<<":"<<#name<<" temps CPU(mus): "<< name##cumul<<std::endl; \
name##tcount=0;name##cumul=0;}
#define START_TIMING (   name)
Value:
static long name##tcount=0;static long name##cumul;long name##tt0; timeval name##tv; gettimeofday(&name##tv,0); \
name##tt0=name##tv.tv_usec+name##tv.tv_sec*1000000; \
if(name##tcount==0)std::cerr<<__FILE__<<":"<<__LINE__<<":"<<#name<<std::endl;
#define STDLOG (   msg)

Function Documentation

template<class T >
double ToDouble ( const T &  arg)

References out.

template<class T >
std::string ToString ( const T &  arg)

References out.