Last change
on this file since 2258 was
925,
checked in by landauf, 16 years ago
|
- the MultiTypes can now handle pointers and xml-elements
- added a const keyword in the ticpp.h file (TinyXML++)
|
File size:
1.9 KB
|
Rev | Line | |
---|
[792] | 1 | /* |
---|
| 2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
| 3 | * |
---|
| 4 | * |
---|
| 5 | * License notice: |
---|
| 6 | * |
---|
| 7 | * This program is free software; you can redistribute it and/or |
---|
| 8 | * modify it under the terms of the GNU General Public License |
---|
| 9 | * as published by the Free Software Foundation; either version 2 |
---|
| 10 | * of the License, or (at your option) any later version. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
| 20 | * |
---|
| 21 | * Author: |
---|
| 22 | * Fabian 'x3n' Landau |
---|
| 23 | * Co-authors: |
---|
| 24 | * ... |
---|
| 25 | * |
---|
| 26 | * Inspiration: MultiType by Benjamin Grauer |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | #ifndef _MultiType_H__ |
---|
| 30 | #define _MultiType_H__ |
---|
| 31 | |
---|
| 32 | #include "UtilPrereqs.h" |
---|
| 33 | |
---|
| 34 | enum _UtilExport MultiType |
---|
| 35 | { |
---|
| 36 | MT_null, |
---|
[925] | 37 | MT_void, |
---|
[792] | 38 | MT_int, |
---|
| 39 | MT_uint, |
---|
| 40 | MT_char, |
---|
| 41 | MT_uchar, |
---|
| 42 | MT_short, |
---|
| 43 | MT_ushort, |
---|
| 44 | MT_long, |
---|
| 45 | MT_ulong, |
---|
| 46 | MT_float, |
---|
| 47 | MT_double, |
---|
| 48 | MT_longdouble, |
---|
| 49 | MT_bool, |
---|
| 50 | MT_constchar, |
---|
| 51 | MT_string, |
---|
[925] | 52 | MT_xmlelement, |
---|
[792] | 53 | MT_vector2, |
---|
| 54 | MT_vector3, |
---|
| 55 | MT_colourvalue, |
---|
| 56 | MT_quaternion, |
---|
| 57 | MT_degree, |
---|
| 58 | MT_radian |
---|
| 59 | }; |
---|
| 60 | |
---|
| 61 | union _UtilExport MultiTypeValue |
---|
| 62 | { |
---|
[925] | 63 | void* void_; |
---|
[792] | 64 | int int_; |
---|
| 65 | unsigned int uint_; |
---|
| 66 | char char_; |
---|
| 67 | unsigned char uchar_; |
---|
| 68 | short short_; |
---|
| 69 | unsigned short ushort_; |
---|
| 70 | long long_; |
---|
| 71 | unsigned long ulong_; |
---|
| 72 | float float_; |
---|
| 73 | double double_; |
---|
| 74 | long double longdouble_; |
---|
| 75 | bool bool_; |
---|
| 76 | }; |
---|
| 77 | |
---|
| 78 | #endif /* _MultiType_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.