OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
diaginit.cpp File Reference

Implementation of diagnostic initialization functions. More...

#include <owl/pch.h>
#include <owl/defs.h>
#include <owl/profile.h>
#include <owl/shellitm.h>
#include <filesystem>

Go to the source code of this file.

Namespaces

namespace  owl
 Object Windows Library (OWLNext Core).

Functions

auto owl::GetDiagIniFullFileName_ (LPCSTR filename) -> tstring
bool owl::GetDiagEnabled (LPCSTR filename, LPCSTR diagGroup, bool defEnabled)
 Retrieves a diagnostic group's enabled flag from a private ini-file.
int owl::GetDiagLevel (LPCSTR filename, LPCSTR diagGroup, int defLevel)
 Retrieves a diagnostic group's level setting from a private ini-file.

Detailed Description

Implementation of diagnostic initialization functions.

Settings are stored in a profile (name is provided) in a section named "Diagnostics". Profile format in an ascii .ini file looks like:

[Diagnostics]
Enabled = <enabled>
<groupname1> = <enabled> <level>
<groupname2> = <enabled> <level>
...
<groupnameN> = <enabled> <level>

where:

<enabled> = 0|1
<level> = 0..255

Definition in file diaginit.cpp.