1 /* 2 * Types.h 3 * 4 * Copyright (C) 1999 Stephen F. White 5 * Copyright (C) 2003 J. "MUFTI" Scheurich 6 * 7 * automatic (via configure) generated file, direct change is useless. 8 * change batch/mkSFMFTypes.sh instead 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License 21 * along with this program (see the file "COPYING" for details); if 22 * not, write to the Free Software Foundation, Inc., 675 Mass Ave, 23 * Cambridge, MA 02139, USA. 24 */ 25 26 #pragma once 27 28 #include "MyString.h" 29 class FieldValue; 30 31 enum { 32 MFBOOL = 0, 33 MFCOLOR = 1, 34 MFCOLORRGBA = 2, 35 MFDOUBLE = 3, 36 MFFLOAT = 4, 37 MFINT32 = 5, 38 MFMATRIX3F = 6, 39 MFMATRIX4F = 7, 40 MFNODE = 8, 41 MFROTATION = 9, 42 MFSTRING = 10, 43 MFTIME = 11, 44 MFVEC2D = 12, 45 MFVEC2F = 13, 46 MFVEC3D = 14, 47 MFVEC3F = 15, 48 MFVEC4F = 16, 49 SFBOOL = 17, 50 SFCOLOR = 18, 51 SFCOLORRGBA = 19, 52 SFDOUBLE = 20, 53 SFFLOAT = 21, 54 SFIMAGE = 22, 55 SFINT32 = 23, 56 SFMATRIX3F = 24, 57 SFMATRIX4F = 25, 58 SFNODE = 26, 59 SFROTATION = 27, 60 SFSTRING = 28, 61 SFTIME = 29, 62 SFVEC2D = 30, 63 SFVEC2F = 31, 64 SFVEC3D = 32, 65 SFVEC3F = 33, 66 SFVEC4F = 34 67 }; 68 69 #define LAST_TYPE SFVEC4F 70 71 int typeStringToEnum(const char* str); 72 73 const char* typeEnumToString(int type); 74 75 FieldValue *typeDefaultValue(int type); 76 77 const char *getTypeC(int type, int languageFlag); 78 79 bool isArrayInC(int type); 80 81 int getSFType(int type); 82 83 bool isMFType(int type); 84 85