#include <infolines.h>
Inheritance diagram for Platform:
Public Member Functions | |
Platform () | |
virtual | operator const char * () const |
Protected Attributes | |
char * | _infoLine |
|
Definition at line 210 of file platfDepend.cxx. References InfoLine::_infoLine, and Str31.
00211 { 00212 #if defined(sun) || defined(__SUNPRO_CC) 00213 Str31 sys, rel, arch, platf; 00214 sysinfo(SI_SYSNAME, sys, 31); 00215 sysinfo(SI_RELEASE, rel, 31); 00216 sysinfo(SI_ARCHITECTURE,arch, 31); 00217 sysinfo(SI_PLATFORM,platf, 31); 00218 _infoLine= new char[strlen(sys)+strlen(rel)+strlen(arch)+strlen(platf)+30]; 00219 sprintf(_infoLine,"# Platform : %s %s %s %s \n",sys,rel,arch,platf); 00220 #elif defined(linux) 00221 struct utsname buf; 00222 uname(&buf); 00223 _infoLine= new char[strlen(buf.sysname)+strlen(buf.release) 00224 +strlen(buf.version)+strlen(buf.machine)+30]; 00225 sprintf(_infoLine,"# Platform : %s %s %s %s \n",buf.sysname,buf.release, 00226 buf.version,buf.machine); 00227 #elif defined(_MSC_VER) 00228 _infoLine= new char[40]; 00229 strcpy(_infoLine, "# Platform : MS Windows \n"); 00230 #else 00231 _infoLine= new char[40]; 00232 strcpy(_infoLine, "# Platform : unknown \n"); 00233 #endif 00234 } |
|
Definition at line 79 of file infolines.h. References InfoLine::_infoLine.
00079 { return _infoLine; } |
|
Definition at line 75 of file infolines.h. Referenced by CmdLine::CmdLine(), ExecLocation::ExecLocation(), InfoLine::InfoLine(), InfoLine::operator const char *(), Platform(), TimeStamp::TimeStamp(), User::User(), UserHomeDir::UserHomeDir(), and InfoLine::~InfoLine(). |