Implement config_mgr.h – config file user configuration interface.
More...
#include <algorithm>
#include <list>
#include <locale>
#include <stdlib.h>
#include <time.h>
#include <wx/colour.h>
#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/statline.h>
#include <wx/string.h>
#include "model/ais_decoder.h"
#include "model/ais_state_vars.h"
#include "model/config_vars.h"
#include "model/gui_vars.h"
#include "model/georef.h"
#include "model/multiplexer.h"
#include "model/route_point.h"
#include "ais.h"
#include "chartdb.h"
#include "chcanv.h"
#include "config_mgr.h"
#include "FontMgr.h"
#include "Layer.h"
#include "navutil.h"
#include "ocpn_frame.h"
#include "ocpn_gl_options.h"
#include "OCPNPlatform.h"
#include "ocpn_plugin.h"
#include "RoutePropDlgImpl.h"
#include "s52plib.h"
#include "s52utils.h"
Go to the source code of this file.
Implement config_mgr.h – config file user configuration interface.
Definition in file config_mgr.cpp.
◆ CHECK_BFN
#define CHECK_BFN |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: conf.Read(s, &read_int); \
bval = t; \
bval0 = read_int != 0; \
if (bval != bval0) return false;
◆ CHECK_FFN
#define CHECK_FFN |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: conf.Read(s, &dval); \
if (fabs(dval - t) > 0.1) return false;
◆ CHECK_FLT
#define CHECK_FLT |
( |
|
s, |
|
|
|
t, |
|
|
|
eps |
|
) |
| |
Value: conf.Read(s, &val); \
val.ToDouble(&dval); \
if (fabs(dval - *t) > eps) return false;
Definition at line 959 of file config_mgr.cpp.
◆ CHECK_IFN
#define CHECK_IFN |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: conf.Read(s, &read_int); \
if (read_int != t) return false;
◆ CHECK_INT
#define CHECK_INT |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: read_int = *t; \
if (!conf.Read(s, &read_int)) wxLogMessage(s); \
if ((int)*t != read_int) return false;
Definition at line 945 of file config_mgr.cpp.
◆ CHECK_STR
#define CHECK_STR |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: val = t; \
conf.Read(s, &val); \
if (!t.IsSameAs(val)) return false;
Definition at line 950 of file config_mgr.cpp.
◆ CHECK_STRP
#define CHECK_STRP |
( |
|
s, |
|
|
|
t |
|
) |
| |
Value: conf.Read(s, &val); \
if (!t->IsSameAs(val)) return false;
Definition at line 955 of file config_mgr.cpp.
◆ NAN
#define NAN (*(double *)&lNaN) |
◆ appendOSDirSlash()
void appendOSDirSlash |
( |
wxString * |
pString | ) |
|
◆ GetRandomNumber()
int GetRandomNumber |
( |
int |
range_min, |
|
|
int |
range_max |
|
) |
| |