KiCad PCB EDA Suite
|
Pertains to a single program module, either an EXE or a DSO/DLL ("bin_mod"). More...
#include <bin_mod.h>
Public Member Functions | |
BIN_MOD (const char *aName) | |
~BIN_MOD () | |
void | Init () |
void | End () |
void | InitSettings (APP_SETTINGS_BASE *aPtr) |
Takes ownership of a new application settings object. | |
Public Attributes | |
const char * | m_name |
name of this binary module, static C string. | |
APP_SETTINGS_BASE * | m_config |
maybe from $HOME/.${m_name} | |
wxString | m_help_file |
SEARCH_STACK | m_search |
Pertains to a single program module, either an EXE or a DSO/DLL ("bin_mod").
It manages miscellaneous configuration file information pertinent to one bin_mod. Because it serves in both DSO/DLLs and in EXEs, its name is neutral. Accessors are in containing (wrapper) classes.
BIN_MOD::BIN_MOD | ( | const char * | aName | ) |
Definition at line 31 of file bin_mod.cpp.
BIN_MOD::~BIN_MOD | ( | ) |
Definition at line 62 of file bin_mod.cpp.
void BIN_MOD::End | ( | ) |
Definition at line 50 of file bin_mod.cpp.
References SETTINGS_MANAGER::FlushAndRelease(), PGM_BASE::GetSettingsManager(), m_config, and Pgm().
Referenced by PGM_KICAD::Destroy(), and KIFACE_BASE::end_common().
void BIN_MOD::Init | ( | ) |
Definition at line 38 of file bin_mod.cpp.
References m_help_file, and m_name.
Referenced by PGM_KICAD::OnPgmInit(), and KIFACE_BASE::start_common().
|
inline |
Takes ownership of a new application settings object.
aPtr | is the settings object for this module. |
Definition at line 53 of file bin_mod.h.
References m_config.
Referenced by KIFACE_BASE::InitSettings(), and PGM_KICAD::OnPgmInit().
APP_SETTINGS_BASE* BIN_MOD::m_config |
maybe from $HOME/.${m_name}
Definition at line 57 of file bin_mod.h.
Referenced by End(), InitSettings(), KIFACE_BASE::KifaceSettings(), and PGM_KICAD::PgmSettings().
wxString BIN_MOD::m_help_file |
Definition at line 58 of file bin_mod.h.
Referenced by PGM_KICAD::GetHelpFileName(), KIFACE_BASE::GetHelpFileName(), and Init().
const char* BIN_MOD::m_name |
name of this binary module, static C string.
Definition at line 55 of file bin_mod.h.
Referenced by Init(), and KIFACE_BASE::Name().
SEARCH_STACK BIN_MOD::m_search |
Definition at line 60 of file bin_mod.h.
Referenced by KIFACE_BASE::KifaceSearch(), PGM_KICAD::OnPgmInit(), KIFACE_BASE::start_common(), and PGM_KICAD::SysSearch().