Back to index

salome-kernel  6.5.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | Friends
UTILS_EXPORT Protocol Reference

Ce composant prend en charge la connexion et la deconnexion a l'orb Il est souhaitable de l'utiliser dans un SINGLETON. More...

#include <Utils_CommException.hxx>

Inheritance diagram for UTILS_EXPORT:
Inheritance graph
[legend]
Collaboration diagram for UTILS_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CommException (void)
 CommException (const char *texte)
 CommException (const CommException &ex)
 ~CommException () throw ()
virtual ~DESTRUCTEUR_GENERIQUE_ ()
 virtual destructor
virtual void operator() (void)=0
 performs the destruction
 Unexpect (PVF f)
 ~Unexpect ()
 Terminate (PVF f)
 ~Terminate ()
 Identity (const char *name)
 ~Identity ()
const pid_t & pid (void) const
struct utsname & hostid (void) const
const uid_t & uid (void) const
const char *const name (void) const
const char *const adip (void) const
const char *const pwname (void) const
const time_t & start (void) const
const char *const rep (void) const
const char * host_char (void) const
const char * start_char (void) const
 Utils_Mutex ()
 ~Utils_Mutex ()
void lock ()
void unlock ()
 Utils_Locker (Utils_Mutex *)
virtual ~Utils_Locker ()
 ORB_INIT (void)
virtual ~ORB_INIT ()
CORBA::ORB_var & operator() (int argc, char **argv) throw ( CommException )
CORBA::ORB_var & orb (void)
 SALOME_Exception (const char *text, const char *fileName=0, const unsigned int lineNumber=0)
 SALOME_Exception (const SALOME_Exception &ex)
virtual ~SALOME_Exception () throw ()
virtual const char * what (void) const throw ()
 Utils_Timer ()
virtual ~Utils_Timer ()
void Start ()
void Stop ()
void Reset ()
void Show ()
void ShowAbsolute ()

Static Public Member Functions

static const int Ajout (DESTRUCTEUR_GENERIQUE_ &objet)
 adds a destruction object to the list of destructions

Static Public Attributes

static std::list
< DESTRUCTEUR_GENERIQUE_ * > * 
Destructeurs

Protected Attributes

const char *const _name
const char *const _adip
const pid_t _pid
const uid_t _uid
const char *const _pwname
const char *const _dir
const time_t _start
const char *const _cstart
const char * _text
double Cumul_user
double Cumul_sys
bool Stopped
tms * RefToCurrentTMS
tms * RefToInitialTMS
timeval * RefToCurrentTimeB
timeval * RefToInitialTimeB

Private Member Functions

 Identity (void)
 Identity (const Identity &monid)
 SALOME_Exception (void)

Private Attributes

PVF old
pthread_mutex_t myMutex
pthread_mutex_t myHelperMutex
pthread_t myThread
int myCount
Utils_MutexmyMutex
CORBA::ORB_var _orb

Friends

std::ostream & operator<< (std::ostream &os, const Identity &monid)
UTILS_EXPORT friend std::ostream & operator<< (std::ostream &os, const SALOME_Exception &ex)

Detailed Description

Ce composant prend en charge la connexion et la deconnexion a l'orb Il est souhaitable de l'utiliser dans un SINGLETON.

Definition at line 36 of file Utils_CommException.hxx.


Constructor & Destructor Documentation

virtual UTILS_EXPORT::~DESTRUCTEUR_GENERIQUE_ ( ) [inline, virtual]

virtual destructor

Definition at line 68 of file Utils_DESTRUCTEUR_GENERIQUE.hxx.

Definition at line 44 of file Utils_ExceptHandlers.hxx.

{ std::set_unexpected(old); }

Definition at line 59 of file Utils_ExceptHandlers.hxx.

{ std::set_terminate(old); }
virtual UTILS_EXPORT::~Utils_Locker ( ) [virtual]
virtual UTILS_EXPORT::~ORB_INIT ( ) [virtual]
virtual UTILS_EXPORT::~SALOME_Exception ( ) throw () [virtual]
virtual UTILS_EXPORT::~Utils_Timer ( ) [virtual]

Member Function Documentation

const char* const UTILS_EXPORT::adip ( void  ) const
static const int UTILS_EXPORT::Ajout ( DESTRUCTEUR_GENERIQUE_ objet) [static]

adds a destruction object to the list of destructions

UTILS_EXPORT::CommException ( const char *  texte)
const char* UTILS_EXPORT::host_char ( void  ) const
struct utsname& UTILS_EXPORT::hostid ( void  ) const [read]
UTILS_EXPORT::Identity ( void  ) [private]
UTILS_EXPORT::Identity ( const Identity monid) [private]
UTILS_EXPORT::Identity ( const char *  name)
const char* const UTILS_EXPORT::name ( void  ) const
CORBA::ORB_var& UTILS_EXPORT::operator() ( int  argc,
char **  argv 
) throw ( CommException )
virtual void UTILS_EXPORT::operator() ( void  ) [pure virtual]

performs the destruction

CORBA::ORB_var& UTILS_EXPORT::orb ( void  ) [inline]
const pid_t& UTILS_EXPORT::pid ( void  ) const
const char* const UTILS_EXPORT::pwname ( void  ) const
const char* const UTILS_EXPORT::rep ( void  ) const
UTILS_EXPORT::SALOME_Exception ( void  ) [private]
UTILS_EXPORT::SALOME_Exception ( const char *  text,
const char *  fileName = 0,
const unsigned int  lineNumber = 0 
)
const time_t& UTILS_EXPORT::start ( void  ) const
const char* UTILS_EXPORT::start_char ( void  ) const
UTILS_EXPORT::Terminate ( PVF  f) [inline]

Definition at line 57 of file Utils_ExceptHandlers.hxx.

      { old = std::set_terminate(f); }
const uid_t& UTILS_EXPORT::uid ( void  ) const
UTILS_EXPORT::Unexpect ( PVF  f) [inline]

Definition at line 42 of file Utils_ExceptHandlers.hxx.

      { old = std::set_unexpected(f); }
virtual const char* UTILS_EXPORT::what ( void  ) const throw () [virtual]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Identity monid 
) [friend]

Definition at line 261 of file Utils_Identity.cxx.

{
        ASSERT(monid._name!=NULL) ;
        os << "Identity :" << std::endl ;
        os << '\t' << "Component name : " << monid._name << std::endl ;
        os << '\t' << "Numero de PID :  " << monid._pid << std::endl;
        os << '\t' << "Uid utilisateur  : "   << monid._uid << std::endl;
        os << '\t' << "nom utilisateur  : "   << monid._pwname << std::endl;
#ifndef WIN32
        os << '\t' << "Nom de machine : " << monid._hostid.nodename << std::endl;
#else
        os << '\t' << "Nom de machine : " << monid._hostid << std::endl;
#endif
        os << '\t' << "Adresse IP : " << monid._adip << std::endl;
        os << '\t' << "Heure de lancement : " << monid._cstart ; //ctime(&monid._start) ;
        os << '\t' << "Dans le repertoire : " << monid._dir << std::endl;

        return os ;
}
UTILS_EXPORT friend std::ostream& operator<< ( std::ostream &  os,
const SALOME_Exception ex 
) [friend]

Definition at line 111 of file Utils_SALOME_Exception.cxx.

{
        os << ex._text ;
        return os ;
}

Member Data Documentation

const char* const UTILS_EXPORT::_adip [protected]

Definition at line 51 of file Utils_Identity.hxx.

const char* const UTILS_EXPORT::_cstart [protected]

Definition at line 65 of file Utils_Identity.hxx.

const char* const UTILS_EXPORT::_dir [protected]

Definition at line 63 of file Utils_Identity.hxx.

const char* const UTILS_EXPORT::_name [protected]

Definition at line 50 of file Utils_Identity.hxx.

CORBA::ORB_var UTILS_EXPORT::_orb [private]

Definition at line 54 of file Utils_ORB_INIT.hxx.

const pid_t UTILS_EXPORT::_pid [protected]

Definition at line 55 of file Utils_Identity.hxx.

const char* const UTILS_EXPORT::_pwname [protected]

Definition at line 62 of file Utils_Identity.hxx.

const time_t UTILS_EXPORT::_start [protected]

Definition at line 64 of file Utils_Identity.hxx.

const char* UTILS_EXPORT::_text [protected]

Definition at line 74 of file Utils_SALOME_Exception.hxx.

const uid_t UTILS_EXPORT::_uid [protected]

Definition at line 56 of file Utils_Identity.hxx.

double UTILS_EXPORT::Cumul_sys [protected]

Definition at line 54 of file Utils_Timer.hxx.

double UTILS_EXPORT::Cumul_user [protected]

Definition at line 53 of file Utils_Timer.hxx.

Definition at line 66 of file Utils_DESTRUCTEUR_GENERIQUE.hxx.

int UTILS_EXPORT::myCount [private]

Definition at line 49 of file Utils_Mutex.hxx.

pthread_mutex_t UTILS_EXPORT::myHelperMutex [private]

Definition at line 47 of file Utils_Mutex.hxx.

pthread_mutex_t UTILS_EXPORT::myMutex [private]

Definition at line 46 of file Utils_Mutex.hxx.

Definition at line 59 of file Utils_Mutex.hxx.

pthread_t UTILS_EXPORT::myThread [private]

Definition at line 48 of file Utils_Mutex.hxx.

Definition at line 39 of file Utils_ExceptHandlers.hxx.

timeval* UTILS_EXPORT::RefToCurrentTimeB [protected]

Definition at line 58 of file Utils_Timer.hxx.

Definition at line 57 of file Utils_Timer.hxx.

timeval * UTILS_EXPORT::RefToInitialTimeB [protected]

Definition at line 58 of file Utils_Timer.hxx.

tms * UTILS_EXPORT::RefToInitialTMS [protected]

Definition at line 57 of file Utils_Timer.hxx.

Definition at line 55 of file Utils_Timer.hxx.


The documentation for this protocol was generated from the following files: