Public include file for BPS solution wide globals. More...
Go to the source code of this file.
Defines | |
| #define | bChar(aChar) QChar::fromLatin1(aChar) |
| Encapsulation for string literals. | |
| #define | BPS_APPLICATION_NAME "BPS2" |
| Software name. | |
| #define | BPS_COPYRIGHT_YEARS "2010-2012" |
| Copyright years. | |
| #define | BPS_DATASTORE_LEVEL 2017000 |
| Datastore level compatible to this software version. | |
| #define | BPS_ORGANIZATION_DOMAIN "ibk-software.com" |
| Software creator domain. | |
| #define | BPS_ORGANIZATION_NAME "IBK Software AG" |
| Software creator name. | |
| #define | BPS_PRIVATE(Class) |
| Declare pointer to private object in a public class. | |
| #define | BPS_PUBLIC(Class) |
| Declare pointer to public object in a private class. | |
| #define | BPS_RELDATE "16.1.2012" |
| Software release date. | |
| #define | BPS_STRING(tok) BPS_STRING0(tok) |
| Stringize token, expanding macros first in case. | |
| #define | BPS_STRING0(tok) #tok |
| Stringize token. | |
| #define | BPS_VERSION BPS_STRING(BPS_VERSION_MAJOR.BPS_VERSION_MINOR.BPS_VERSION_MICRO) |
| Software version as text. | |
| #define | BPS_VERSION_MAJOR 2 |
| Software major version number. | |
| #define | BPS_VERSION_MICRO 0 |
| Software micro version number. | |
| #define | BPS_VERSION_MINOR 17 |
| Software minor version number. | |
| #define | bStr(aStr) QString::fromLatin1(aStr) |
| Encapsulation for char literals. | |
Public include file for BPS solution wide globals.
Some special macros are included to make linking to the shared library binary stable. This is achieved by moving all member data into a private class and only keeping a pointer to the private object in the public class, against which the applications are linked. This way the size of the public objects will always stay the same between different releases, even if member data size internally changes.
| #define BPS_PRIVATE | ( | Class | ) |
private: \ class Class##Private* prv_; \ friend class Class##Private;
Declare pointer to private object in a public class.
| #define BPS_PUBLIC | ( | Class | ) |
private: \ class Class* pub_; \ friend class Class;
Declare pointer to public object in a private class.