FreeNOS
Public Member Functions
SysInfo Class Reference

Print global system information. More...

#include <SysInfo.h>

Inheritance diagram for SysInfo:
POSIXApplication Application

Public Member Functions

 SysInfo (int argc, char **argv)
 Constructor. More...
 
virtual ~SysInfo ()
 Destructor. More...
 
virtual Result exec ()
 Execute the application. More...
 
- Public Member Functions inherited from POSIXApplication
 POSIXApplication (int argc, char **argv)
 Class constructor. More...
 
virtual ~POSIXApplication ()
 Class destructor. More...
 
- Public Member Functions inherited from Application
 Application (int argc, char **argv)
 Class constructor. More...
 
virtual ~Application ()
 Class destructor. More...
 
virtual int run ()
 Run the application. More...
 

Additional Inherited Members

- Public Types inherited from Application
enum  Result {
  Success, NotFound, IOError, InvalidArgument,
  ShowUsage, TimedOut, OutOfMemory
}
 Result codes. More...
 
- Protected Member Functions inherited from POSIXApplication
virtual Result output (const char *string) const
 Print text to output. More...
 
int runProgram (const char *path, const char **argv)
 Runs an external program. More...
 
- Protected Member Functions inherited from Application
virtual Result initialize ()
 Initialize the application. More...
 
virtual Result output (String &string) const
 Print string to output. More...
 
ArgumentParserparser ()
 Get program arguments parser. More...
 
const ArgumentParserparser () const
 Get constant program arguments parser. More...
 
const ArgumentContainerarguments () const
 Get program arguments. More...
 
void setVersion (const String &version)
 Set program version. More...
 
- Protected Attributes inherited from Application
int m_argc
 Input argument count. More...
 
char ** m_argv
 Input argument values. More...
 

Detailed Description

Print global system information.

Bug:
Running 'sysinfo' and 'ps' commands in turn on arm/sunxi-h3 shows a 4KiB memory leak

Definition at line 33 of file SysInfo.h.

Constructor & Destructor Documentation

◆ SysInfo()

SysInfo::SysInfo ( int  argc,
char **  argv 
)

Constructor.

Parameters
argcArgument count
argvArgument values

Definition at line 27 of file SysInfo.cpp.

References Application::parser(), and ArgumentParser::setDescription().

◆ ~SysInfo()

SysInfo::~SysInfo ( )
virtual

Destructor.

Definition at line 33 of file SysInfo.cpp.

Member Function Documentation

◆ exec()

SysInfo::Result SysInfo::exec ( )
virtual

The documentation for this class was generated from the following files: