- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Search for |

# version.hpp

Go to the documentation of this file.

    00001 //  Copyright (c) 2005-2007 Andre Merzky (andre@merzky.net)
    00002 //  Copyright (c) 2005-2009 Hartmut Kaiser
    00003 //
    00004 //  Distributed under the Boost Software License, Version 1.0. (See accompanying
    00005 //  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
    00006
    00007 #if !defined(SAGA_PACKAGE_COMM_STREAM_VERSION_HPP)
    00008 #define SAGA_PACKAGE_COMM_STREAM_VERSION_HPP
    00009
    00010 #include <saga/saga/util.hpp>
    00011 #include <saga/saga/version.hpp>
    00012 #include <saga/saga/packages/stream/config.hpp>
    00013
    00015 //  The version of the SAGA stream package
    00016 //
    00017 //  SAGA_VERSION_PACKAGE_STREAM_FULL & 0x0000FF is the sub-minor version
    00018 //  SAGA_VERSION_PACKAGE_STREAM_FULL & 0x00FF00 is the minor version
    00019 //  SAGA_VERSION_PACKAGE_STREAM_FULL & 0xFF0000 is the major version
    00020 //
    00021 #define SAGA_VERSION_PACKAGE_STREAM_FULL         SAGA_VERSION_FULL
    00022
    00023 #define SAGA_VERSION_PACKAGE_STREAM_MAJOR        SAGA_VERSION_MAJOR
    00024 #define SAGA_VERSION_PACKAGE_STREAM_MINOR        SAGA_VERSION_MINOR
    00025 #define SAGA_VERSION_PACKAGE_STREAM_SUBMINOR     SAGA_VERSION_SUBMINOR
    00026
    00027 #define SAGA_VERSION_PACKAGE_STREAM_DATE         SAGA_VERSION_DATE
    00028
    00029 #define SAGA_VERSION_PACKAGE_STREAM_SUBMINORMASK SAGA_VERSION_SUBMINORMASK
    00030
    00032 //  The SAGA stream package API version: here V1.0.0
    00033 #define SAGA_VERSION_PACKAGE_STREAM_API          SAGA_VERSION_API
    00034
    00036 //
    00037 //  SAGA_VERSION_PACKAGE_STREAM_ISCOMPATIBLE()
    00038 //
    00039 //  The SAGA_VERSION_ISCOMPATIBLE macro tests, if the version of the loaded
    00040 //  SAGA engine is compatible with the version the calling application was
    00041 //  compiled against.
    00042 //
    00043 #define SAGA_VERSION_PACKAGE_STREAM_ISCOMPATIBLE_EX(version)                  \
    00044     (((version) & ~SAGA_VERSION_PACKAGE_STREAM_SUBMINORMASK) >=               \
    00045       (SAGA_VERSION_PACKAGE_STREAM_FULL & ~SAGA_VERSION_PACKAGE_STREAM_SUBMINORMASK)) \
    00046
    00047
    00048 #define SAGA_VERSION_PACKAGE_STREAM_ISCOMPATIBLE()                            \
    00049     SAGA_VERSION_PACKAGE_STREAM_ISCOMPATIBLE_EX(                              \
    00050       saga::get_stream_package_version())                                     \
    00051
    00052
    00054 namespace saga {
    00055
    00056 // Returns the version of the SAGA engine
    00057 SAGA_STREAM_PACKAGE_EXPORT unsigned long get_stream_package_version();
    00058
    00059 // Returns the implemented SAGA API version
    00060 SAGA_STREAM_PACKAGE_EXPORT unsigned long get_stream_package_api_version();
    00061
    00063 }   // namespace saga
    00064
    00065 #endif // !SAGA_VERSION_HPP
    00066
    00067