#ifndef _LOCAL_HOST_H_ #define _LOCAL_HOST_H_ #pragma once #include "host.hpp" // For Local Host class LocalHost : public host { public: LocalHost(presetHandler pHandle, CLIHandler *cHandle, outputHandler *oHandle); LocalHost(); ~LocalHost(); protected: virtual bool ExecCommand(string strCommand, connectionHandler* pConnectionHandle = NULL); //virtual string SetPaths(string strPath, string strCmdToFind); virtual bool ProcessCommand(string command, bool pWriteToFile , ofstream* pFilePtr , vector* v = NULL, connectionHandler* pConnectionHandle = NULL, string strFileName = "temp_file_0", bool bParallel = false); virtual string GetHostOSType(); virtual void GenerateSnapFiles(); virtual void GenerateAwrReportFile(string strFile); virtual bool RemoveFileFromHost(string strFile); void ProcessParallelData( boost::barrier *parThreadBar, presetMetaData *metaData, string threadId = ""); private: //int execCommand(string); void writeDataToFile(string ); bool execCommandOnHost(string, bool, ofstream*, vector* vec_strRes = NULL, string fileName = "temp_exec"); string generateDateString(); #ifdef WIN32 void doWinSystemPerfmon( char *); void doWinldiskPerfmon( char *); #else #endif }; #endif // _LOCAL_HOST_H_