Version: 9.12.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

 Kernel_Utils
 

Macros

#define SALOME_UNUSED(var)   (void)var
 
#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 ()
 
const wchar_t * Kernel_Utils::decode (const char *encoded)
 
const wchar_t * Kernel_Utils::decode_s (std::string encoded)
 
const char * Kernel_Utils::encode (const wchar_t *decoded)
 
std::string Kernel_Utils::encode_s (const wchar_t *decoded)
 
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

◆ END_TIMING

#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;}
string name
Definition: pythfilter.py:56

◆ LOG

#define LOG   STDLOG

◆ SALOME_UNUSED

#define SALOME_UNUSED (   var)    (void)var

◆ START_TIMING

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

◆ STDLOG

#define STDLOG (   msg)

Function Documentation

◆ ToDouble()

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

References ORBConfigFile::arg, and out.

◆ ToString()

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

References ORBConfigFile::arg, and out.