1 //=============================================================================
2 // File : Utils_Identity.hxx
3 // Created : Mon Nov 5 17:02:37 CET 2001
4 // Author : Pascale NOYRET, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 # if !defined( __IDENTITE_H__ )
11 # define __IDENTITE_H__
18 # include <sys/utsname.h>
25 const char* const _name ;
26 const struct utsname _hostid;
27 const char* const _adip; // Internet address
29 const char* const _pwname ;
30 const char* const _dir ;
33 const char* const _cstart ;
38 Identity( const Identity &monid );
42 Identity(const char *name);
44 friend ostream & operator<< ( ostream& os , const Identity& monid );
46 const char* const name( void ) const;
47 const pid_t& pid(void) const;
48 const struct utsname& hostid(void) const;
49 const char* const adip(void) const;
50 const uid_t& uid(void) const;
51 const char* const pwname(void) const;
52 const time_t& start(void) const;
53 const char* const rep (void) const;
55 const char* host_char(void ) const;
56 const char* start_char(void) const;
59 # endif /* # if !defined( __IDENTITE_H__ ) */