ProcessExtractor Class Reference

#include <processextractor.h>

List of all members.

Public Member Functions

 ProcessExtractor ()
 ~ProcessExtractor ()
void addToDatabase ()
QList< ProcessgetList ()

Private Member Functions

int executeProcess ()
int insertIntoDB (std::string)
int connectToDB (int flag)
void closeDB ()

Private Attributes

sqlite3 * db


Constructor & Destructor Documentation

ProcessExtractor::ProcessExtractor (  ) 

ProcessExtractor::~ProcessExtractor (  ) 


Member Function Documentation

void ProcessExtractor::addToDatabase (  ) 

Function to parse query to insert rows into sqlite database table from the file populated in the function executeProcess().

void ProcessExtractor::closeDB (  )  [private]

Function to close the sqlite database connection

int ProcessExtractor::connectToDB ( int  flag  )  [private]

This function establishes connection with the sqlite database.

int ProcessExtractor::executeProcess (  )  [private]

This function executes the top command and populates the result in an output file.

QList< Process > ProcessExtractor::getList (  ) 

Function to execute select query on processes table of sqlite database.

int ProcessExtractor::insertIntoDB ( std::string  query  )  [private]

Function to exceute the insert query for sqlite database. Called by addToDatabase().


Member Data Documentation

sqlite3* ProcessExtractor::db [private]


The documentation for this class was generated from the following files:
Generated on Sat Apr 17 16:28:54 2010 for ProcessViewer by  doxygen 1.4.7