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

General definitions used by all ObjectWindows programs. More...

#include <owl/private/defs.h>
#include <owl/private/memory.h>
#include <owl/private/except.h>
#include <owl/private/number.h>
#include <tchar.h>
#include <string>
#include <limits>
#include <type_traits>
#include <filesystem>
#include <owl/private/checks.h>
#include <owl/wsysinc.h>
#include <owl/system.h>
#include <owl/version.h>

Go to the source code of this file.

Classes

struct  owl::detail::TIsRepresentable< T, U, true >
 

Namespaces

namespace  owl
 Object Windows Library (OWLNext Core)
 
namespace  owl::detail
 

Macros

#define _ttof   atof
 
#define WM_SYSTEMERROR   0x0017
 
#define WM_CTLCOLOR   0x0019
 
#define HTASK   HANDLE
 
#define OWL_INI   "OWL.INI"
 
#define OWL_CDLEVEL   2
 
#define OWL_DIAGINFO
 
#define OWL_PUBLIC_DATA
 
#define public_data   public
 
#define protected_data   protected
 
#define OWL_STRICT   1
 
#define OWL_PERSISTENT_STREAMS   0
 

Typedefs

typedef char owl::tchar
 
typedef unsigned char owl::utchar
 
typedef std::string owl::tstring
 

Functions

template<class T >
auto owl::to_tstring (const T &v) -> tstring
 
template<>
auto owl::to_tstring (const std::filesystem::path &p) -> tstring
 
auto owl::to_tstring (LPCSTR s) -> tstring
 
auto owl::to_tstring (LPCWSTR s) -> tstring
 
auto owl::to_tstring (std::string s) -> tstring
 
auto owl::to_tstring (const std::wstring &s) -> tstring
 
uint32 owl::OWLGetVersion ()
 Get version of OWL at runtime.
 
TModuleowl::OWLGetModule ()
 Returns a reference to the global OWL module object. When linking dynamically to OWLNext, this is the module of the OWLNext DLL. When linking statically to OWLNext, it is the same as the one returned from GetGlobalModule.
 
void owl::InitGlobalModule (HINSTANCE hInstance)
 
TModuleowl::GetGlobalModule ()
 
uint16 owl::MkUint16 (uint8 lo, uint8 hi)
 
uint32 owl::MkUint32 (uint16 lo, uint16 hi)
 
uint16 owl::LoUint16 (LRESULT r)
 
int16 owl::LoInt16 (LRESULT r)
 
uint16 owl::HiUint16 (LRESULT r)
 
int16 owl::HiInt16 (LRESULT r)
 
uint8 owl::LoUint8 (LRESULT r)
 
int8 owl::LoInt8 (LRESULT r)
 
uint8 owl::HiUint8 (LRESULT r)
 
int8 owl::HiInt8 (LRESULT r)
 
uint16 owl::SwapUint16 (uint16 u16)
 
uint32 owl::SwapUint32 (uint32 u32)
 
template<class T >
void owl::InUse (const T &arg)
 Handy utility to avoid compiler warnings about unused parameters.
 
template<class TGetText >
tstring owl::CopyText (int size, TGetText get_text)
 Copies text from a C-string (null-terminated character array) into a string object, using a function or functor (function object) to do the actual copying.
 
template<class T , class U >
bool owl::IsRepresentable (U v)
 Helper function for testing for integer truncations.
 

Detailed Description

General definitions used by all ObjectWindows programs.

Included directly by ObjectWindows source modules.

Definition in file defs.h.

Macro Definition Documentation

◆ _ttof

#define _ttof   atof

Definition at line 109 of file defs.h.

◆ HTASK

#define HTASK   HANDLE

Definition at line 127 of file defs.h.

◆ OWL_CDLEVEL

#define OWL_CDLEVEL   2

Definition at line 171 of file defs.h.

◆ OWL_DIAGINFO

#define OWL_DIAGINFO

Definition at line 173 of file defs.h.

◆ OWL_INI

#define OWL_INI   "OWL.INI"

Definition at line 170 of file defs.h.

◆ OWL_PERSISTENT_STREAMS

#define OWL_PERSISTENT_STREAMS   0

Definition at line 390 of file defs.h.

◆ OWL_PUBLIC_DATA

#define OWL_PUBLIC_DATA

Definition at line 192 of file defs.h.

◆ OWL_STRICT

#define OWL_STRICT   1

Definition at line 220 of file defs.h.

◆ protected_data

#define protected_data   protected

Definition at line 208 of file defs.h.

◆ public_data

#define public_data   public

Definition at line 207 of file defs.h.

◆ WM_CTLCOLOR

#define WM_CTLCOLOR   0x0019

Definition at line 126 of file defs.h.

◆ WM_SYSTEMERROR

#define WM_SYSTEMERROR   0x0017

Definition at line 125 of file defs.h.