Otclient  14/8/2020
Platform Class Reference

#include <platform.h>

Public Member Functions

void processArgs (std::vector< std::string > &args)
 
bool spawnProcess (std::string process, const std::vector< std::string > &args)
 
int getProcessId ()
 
bool isProcessRunning (const std::string &name)
 
bool killProcess (const std::string &name)
 
std::string getTempPath ()
 
std::string getCurrentDir ()
 
bool copyFile (std::string from, std::string to)
 
bool fileExists (std::string file)
 
bool removeFile (std::string file)
 
ticks_t getFileModificationTime (std::string file)
 
void openUrl (std::string url)
 
std::string getCPUName ()
 
double getTotalSystemMemory ()
 
std::string getOSName ()
 
std::string traceback (const std::string &where, int level=1, int maxDepth=32)
 

Detailed Description

Definition at line 30 of file platform.h.

Member Function Documentation

◆ copyFile()

bool Platform::copyFile ( std::string  from,
std::string  to 
)

Definition at line 94 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fileExists()

bool Platform::fileExists ( std::string  file)

Definition at line 99 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ getCPUName()

std::string Platform::getCPUName ( )

Definition at line 127 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCurrentDir()

std::string Platform::getCurrentDir ( )

Definition at line 83 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ getFileModificationTime()

ticks_t Platform::getFileModificationTime ( std::string  file)

Definition at line 112 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ getOSName()

std::string Platform::getOSName ( )

Definition at line 159 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProcessId()

int Platform::getProcessId ( )

Definition at line 63 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ getTempPath()

std::string Platform::getTempPath ( )

Definition at line 78 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ getTotalSystemMemory()

double Platform::getTotalSystemMemory ( )

Definition at line 143 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isProcessRunning()

bool Platform::isProcessRunning ( const std::string &  name)

Definition at line 68 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ killProcess()

bool Platform::killProcess ( const std::string &  name)

Definition at line 73 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ openUrl()

void Platform::openUrl ( std::string  url)

Definition at line 120 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ processArgs()

void Platform::processArgs ( std::vector< std::string > &  args)

Definition at line 34 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ removeFile()

bool Platform::removeFile ( std::string  file)

Definition at line 105 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ spawnProcess()

bool Platform::spawnProcess ( std::string  process,
const std::vector< std::string > &  args 
)

Definition at line 39 of file unixplatform.cpp.

Here is the caller graph for this function:

◆ traceback()

std::string Platform::traceback ( const std::string &  where,
int  level = 1,
int  maxDepth = 32 
)

Definition at line 172 of file unixplatform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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