OpenCPN Partial API docs
Loading...
Searching...
No Matches
base_platform.h File Reference

Basic platform specific support utilities without GUI deps. More...

#include <stdio.h>
#include <vector>
#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/gdicmn.h>
#include <wx/log.h>
#include <wx/stdpaths.h>
#include <wx/clrpicker.h>
#include <wx/colourdata.h>
#include <wx/colordlg.h>

Go to the source code of this file.

Classes

struct  PlatSpec
 
struct  OCPN_OSDetail
 
class  AbstractPlatform
 
class  BasePlatform
 

Macros

#define PLATFORM_CAP_PLUGINS   1
 
#define PLATFORM_CAP_FASTPAN   2
 

Functions

void appendOSDirSlash (wxString *path)
 
bool platform::GetMemoryStatus (int *mem_total, int *mem_used)
 Return total system RAM and size of program Values returned are in kilobytes.
 

Variables

BasePlatformg_BasePlatform
 points to g_platform, handles brain-dead MS linker.
 

Detailed Description

Basic platform specific support utilities without GUI deps.

Definition in file base_platform.h.

Macro Definition Documentation

◆ PLATFORM_CAP_FASTPAN

#define PLATFORM_CAP_FASTPAN   2

Definition at line 50 of file base_platform.h.

◆ PLATFORM_CAP_PLUGINS

#define PLATFORM_CAP_PLUGINS   1

Definition at line 49 of file base_platform.h.

Function Documentation

◆ appendOSDirSlash()

void appendOSDirSlash ( wxString *  path)

Definition at line 483 of file base_platform.cpp.

◆ GetMemoryStatus()

bool platform::GetMemoryStatus ( int *  mem_total,
int *  mem_used 
)

Return total system RAM and size of program Values returned are in kilobytes.

Definition at line 998 of file base_platform.cpp.

Variable Documentation

◆ g_BasePlatform

BasePlatform* g_BasePlatform
extern

points to g_platform, handles brain-dead MS linker.

Definition at line 100 of file base_platform.cpp.