CMS 3D CMS Logo

HostInfo.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_HOST_INFO_H
00002 # define CLASSLIB_HOST_INFO_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/sysapi/system.h"
00007 # include <string>
00008 
00009 namespace lat {
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00014 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00015 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00016 
00018 class HostInfo
00019 {
00020 public:
00021     static std::string  name (void);
00022     static std::string  dnsname (void);
00023     static std::string  dnsdomain (void);
00024     static std::string  fqdn (void);
00025 
00026     // FIXME: for host name x?
00027     // FIXME: gethostbyname, gethostbyaddr, ...
00028 private:
00029     static bool         isfqdn (const char *name);
00030 };
00031 
00032 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00033 
00034 } // namespace lat
00035 #endif // CLASSLIB_HOST_INFO_H

Generated on Tue Jun 9 17:38:52 2009 for CMSSW by  doxygen 1.5.4