MIRA
Namespaces | Macros
Platform.h File Reference

Platform dependent defines and macros. More...

#include <windows.h>
Include dependency graph for Platform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Macros

#define MIRA_WINDOWS
 
#define MIRA_FUNCTION   __FUNCTION__
 
#define MIRA_DEFAULT_CONSTRUCTOR   {}
 
#define WIN32_LEAN_AND_MEAN   1
 
#define MIRA_BASE_EXPORT   __declspec(dllimport)
 This is required because on windows there is a macro defined called ERROR. More...
 
#define MIRA_DEPRECATED(text, decl)   __declspec(deprecated(text)) decl
 The following macro MIRA_GNUC_VERSION combines the gcc compiler version numbers in a single number. More...
 
#define MIRA_DEPRECATED_CLASS(text)   __declspec(deprecated(text))
 

Detailed Description

Platform dependent defines and macros.

Author
Tim Langner
Date
2010/07/07

Macro Definition Documentation

◆ MIRA_WINDOWS

#define MIRA_WINDOWS

◆ MIRA_FUNCTION

#define MIRA_FUNCTION   __FUNCTION__

◆ MIRA_DEFAULT_CONSTRUCTOR

#define MIRA_DEFAULT_CONSTRUCTOR   {}

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN   1

◆ MIRA_BASE_EXPORT

#define MIRA_BASE_EXPORT   __declspec(dllimport)

This is required because on windows there is a macro defined called ERROR.

This is required because on windows there is a macro defined called RGB The Microsoft Compilers use '#define interface struct'. Since this is not really nice and 'interface' is not a reserved keyword in C/C++, we decided to undef it here!

◆ MIRA_DEPRECATED

#define MIRA_DEPRECATED (   text,
  decl 
)    __declspec(deprecated(text)) decl

The following macro MIRA_GNUC_VERSION combines the gcc compiler version numbers in a single number.

One can test if the compiler meets a required version e.g. 4.6.1 with: #if MIRA_GNUC_VERSION == 40601 Macro for declaring functions and classes deprecated.

MIRA_DEPRECATED("Please use myNewFunction instead", void myOldFunction()) {}

◆ MIRA_DEPRECATED_CLASS

#define MIRA_DEPRECATED_CLASS (   text)    __declspec(deprecated(text))