DDS  ver. 3.5.3.8.g5fe284b
Public Member Functions | List of all members
MiscCommon::CProcStatus Class Reference

This class helps to retrieve process's information from /proc/<pid>/status. More...

#include <Process.h>

Public Member Functions

 CProcStatus ()
 
 ~CProcStatus ()
 
void Open (pid_t _PId)
 
std::string GetValue (const std::string &_KeyName) const
 

Detailed Description

This class helps to retrieve process's information from /proc/<pid>/status.

Note
Usage:
p.Open( 8007 );
cout << "Name" << p.GetValue( "Name" ) << endl;
cout << "PPid" << p.GetValue( "PPid" ) << endl;
p.Open( 1 );
cout << "Name" << p.GetValue( "Name" ) << endl;
cout << "PPid" << p.GetValue( "PPid" ) << endl;

Constructor & Destructor Documentation

◆ CProcStatus()

MiscCommon::CProcStatus::CProcStatus ( )
inline

◆ ~CProcStatus()

MiscCommon::CProcStatus::~CProcStatus ( )
inline

Member Function Documentation

◆ GetValue()

std::string MiscCommon::CProcStatus::GetValue ( const std::string &  _KeyName) const
inline

◆ Open()

void MiscCommon::CProcStatus::Open ( pid_t  _PId)
inline

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