My Project
|
Collect machine architecture. More...
#include <CollectArchitecture.hh>
Public Member Functions | |
string | PutSysName () |
string | PutNodeName () |
string | PutRelease () |
string | PutVersion () |
string | PutMachine () |
string | PutEndian () |
void | DumpAllInfo () |
Collect machine architecture.
This class collects machine architecture parameters by using C-language struct of "utsname". You can get system name, node name, the version of OS, release information and machine architecture from this class object.
"PutEndian()" will return a string, "little" or "big". The framework can judge automatically which the class of SwapBytes should be used or not from the return value of the method.
void CollectArchitecture::DumpAllInfo | ( | ) |
Dump all information collected by this class.
string CollectArchitecture::PutEndian | ( | ) |
return a string, "little" or "big". See the manual of this class. If you receive warning messages from this method, this method cannot detect your machine architecture and return a "big-endian flag" as a default flag.
string CollectArchitecture::PutMachine | ( | ) | [inline] |
returns machine architecture.
string CollectArchitecture::PutSysName | ( | ) | [inline] |
returns the name of OS.