source: nrEngine/include/StdHelpers.h @ 30

Revision 30, 2.4 KB checked in by art, 12 years ago (diff)

::std wurde durch std ueberall ersetzt!

RevLine 
[1]1/***************************************************************************
2 *                                                                         *
3 *   (c) Art Tevs, MPI Informatik Saarbruecken                             *
4 *       mailto: <tevs@mpi-sb.mpg.de>                                      *
5 *                                                                         *
6 *   This program is free software; you can redistribute it and/or modify  *
7 *   it under the terms of the GNU General Public License as published by  *
8 *   the Free Software Foundation; either version 2 of the License, or     *
9 *   (at your option) any later version.                                   *
10 *                                                                         *
11 ***************************************************************************/
12
13#ifndef __NR_ENGINE_STD_HELPERS_H_
14#define __NR_ENGINE_STD_HELPERS_H_
15
16//----------------------------------------------------------------------------------
17// Includes
18//----------------------------------------------------------------------------------
19#include "Prerequisities.h"
20
21/*!
22 * \defgroup helpers Global helper functions
23 *
24 * This group defines some usefull functions, macros and classes
25 * which are helpfull by the work with the engine.
26 *
27 **/
28
29namespace nrEngine{
30
31        /**
32        * NR_sleep do a sleep for a given count of milliseconds.
33        * The sleeping function is defined to be platform independent, so
34        * you are able to use it on every platform.
35        * \param milliseconds Time in milliseconds, how long to sleep
36        * \ingroup helpers
37        **/
38        void _NRExport sleep( uint32 milliseconds );
39
40
41        /**
42        * Convert a given version integer into a understandable string
43        * which have a form like x.x.x
44        * @param version Version integer build by NR_createVersionInteger
45        * \ingroup helpers
46        **/
[30]47        std::string _NRExport convertVersionToString(uint32 version);
[1]48
49
50        /**
51        * Create an version integer from major, minor, patch numbers.
52        * @param major,minor,patch 8 Bit long version number parts
53        * \ingroup helpers
54        **/
55        uint32 _NRExport createVersionInteger(uint8 major, uint8 minor, uint8 patch);
56
57        /**
58         * Delete spaces in the given string.
59         * @param str String to trim
60         * \ingroup helpers
61         **/
62        std::string _NRExport trim(const std::string& str);
63
64        /**
65         * Convert a given order name into a readable string
66         * \ingroup helpers
67         **/
68        std::string _NRExport orderToString(int32 order);
69       
70}; // end namespace
71
72#endif
73
Note: See TracBrowser for help on using the repository browser.