My Project
CollectArchitecture.hh
00001 /*
00002 $Id: CollectArchitecture.hh 1562 2006-06-08 10:27:20Z suzuki $
00003 */
00004 
00005 
00006 #ifndef COLLECTARCHITECTURE
00007 #define COLLECTARCHITECTURE
00008 #include "Header.hh"
00009 #include <sys/utsname.h>
00010 
00011 
00013 
00025 class CollectArchitecture
00026 {
00027 private:
00028   struct utsname uts;
00029   string SysName, NodeName, Release, Version, Machine;
00030 protected:
00031 
00032 public:
00033   CollectArchitecture();
00034  ~CollectArchitecture();
00035 
00036   string PutSysName() { return SysName;  }
00038   string PutNodeName(){ return NodeName; }
00039   string PutRelease() { return Release;  }
00040   string PutVersion() { return Version;  }
00041   string PutMachine() { return Machine;  }
00044   string PutEndian();
00052   void DumpAllInfo();
00054 };
00055 
00056 #endif
00057 
 All Classes Functions Variables Friends