PixelLightAPI  .
Wrapper.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: Wrapper.h                                      *
00003  *
00004  *  Copyright (C) 2002-2012 The PixelLight Team (http://www.pixellight.org/)
00005  *
00006  *  This file is part of PixelLight.
00007  *
00008  *  PixelLight is free software: you can redistribute it and/or modify
00009  *  it under the terms of the GNU Lesser General Public License as published by
00010  *  the Free Software Foundation, either version 3 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  PixelLight is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  *  GNU Lesser General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU Lesser General Public License
00019  *  along with PixelLight. If not, see <http://www.gnu.org/licenses/>.
00020 \*********************************************************/
00021 
00022 
00023 #ifndef __PLCORE_WRAPPER_H__
00024 #define __PLCORE_WRAPPER_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLCore/PLCore.h"
00032 
00033 
00034 //[-------------------------------------------------------]
00035 //[ Namespace                                             ]
00036 //[-------------------------------------------------------]
00037 namespace PLCore {
00038 
00039 
00040 //[-------------------------------------------------------]
00041 //[ Classes                                               ]
00042 //[-------------------------------------------------------]
00043 /**
00044 *  @brief
00045 *    Static class with some few simple wrappers you can use to avoid for instance nasty standard
00046 *    header includes were they are undesired
00047 */
00048 class Wrapper {
00049 
00050 
00051     //[-------------------------------------------------------]
00052     //[ Public static functions                               ]
00053     //[-------------------------------------------------------]
00054     public:
00055         /**
00056         *  @brief
00057         *    Returns the number of characters of a c-string excluding the terminating zero
00058         *
00059         *  @param[in] szString
00060         *    C-string to check
00061         *
00062         *  @return
00063         *    The number of characters of the given c-string excluding the terminating zero
00064         *
00065         *  @note
00066         *    - 'strlen'-wrapper
00067         */
00068         static PLCORE_API uint32 GetStringLength(const char szString[]);
00069 
00070         /**
00071         *  @brief
00072         *    Returns the ceil of the given value
00073         *
00074         *  @param[in] fValue
00075         *    Value to return the ceil from
00076         *
00077         *  @return
00078         *    The ceil of the given value
00079         *
00080         *  @remarks
00081         *    This function returns a floating-point value representing the smallest integer value
00082         *    that is greater than or equal to the given value.
00083         */
00084         static PLCORE_API float Ceil(float fValue);
00085 
00086         /**
00087         *  @brief
00088         *    Returns the natural logarithm of a given number
00089         *
00090         *  @param[in] x
00091         *    Given number
00092         *
00093         *  @return
00094         *    The natural logarithm of the given number
00095         */
00096         static PLCORE_API float Log(float x);
00097 
00098 
00099 };
00100 
00101 
00102 //[-------------------------------------------------------]
00103 //[ Namespace                                             ]
00104 //[-------------------------------------------------------]
00105 } // PLCore
00106 
00107 
00108 #endif // __PLCORE_WRAPPER_H__


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:01
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported