My Project
Public Member Functions
CollectArchitecture Class Reference

Collect machine architecture. More...

#include <CollectArchitecture.hh>

List of all members.

Public Member Functions

string PutSysName ()
string PutNodeName ()
string PutRelease ()
string PutVersion ()
string PutMachine ()
string PutEndian ()
void DumpAllInfo ()

Detailed Description

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.


Member Function Documentation

Dump all information collected by this class.

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends