OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
columns.hpp
Go to the documentation of this file.
1 #ifndef CSM_WOLRD_COLUMNS_H
2 #define CSM_WOLRD_COLUMNS_H
3 
4 #include <string>
5 #include <vector>
6 
7 #include "columnbase.hpp"
8 
9 namespace CSMWorld
10 {
11  namespace Columns
12  {
13  enum ColumnId
14  {
68  // unused
105  // unused
186  ColumnId_PosX = 171, // these are float
187  ColumnId_PosY = 172, // these are float
188  ColumnId_PosZ = 173, // these are float
192  // unused
214 
217  ColumnId_PathgridPosX = 201, // these are int
218  ColumnId_PathgridPosY = 202, // these are int
219  ColumnId_PathgridPosZ = 203, // these are int
224 
228 
230  //ColumnId_FactionID = 212,
232 
235  //ColumnId_EffectAttribute = 216,
238 
244  // unused
247  // use ColumnId_PosX, etc for AI destinations
250 
255 
262 
265 
272 
274 
281  // unused
289 
292  // unused
294  // unused
296 
304 
308 
311 
318 
327 
331 
333 
334  // Allocated to a separate value range, so we don't get a collision should we ever need
335  // to extend the number of use values.
340 
341  // Allocated to a separate value range, so we don't get a collision should we ever need
342  // to extend the number of attributes. Note that this is not the number of different
343  // attributes, but the number of attributes that can be references from a record.
346 
347  // Allocated to a separate value range, so we don't get a collision should we ever need
348  // to extend the number of skills. Note that this is not the number of different
349  // skills, but the number of skills that can be references from a record.
355 
361 
362  ColumnId_Skill1 = 0x50000,
363  ColumnId_Skill2 = 0x50001,
364  ColumnId_Skill3 = 0x50002,
365  ColumnId_Skill4 = 0x50003,
366  ColumnId_Skill5 = 0x50004,
367  ColumnId_Skill6 = 0x50005,
368  ColumnId_Skill7 = 0x50006
369  };
370 
371  std::string getName (ColumnId column);
372 
373  int getId (const std::string& name);
375 
376  bool hasEnums (ColumnId column);
377 
378  std::vector<std::string> getEnums (ColumnId column);
380  }
381 }
382 
383 #endif
Definition: columns.hpp:243
Definition: columns.hpp:354
Definition: columns.hpp:34
Definition: columns.hpp:351
Definition: columns.hpp:99
Definition: columns.hpp:359
Definition: columns.hpp:109
Definition: columns.hpp:352
Definition: columns.hpp:168
Definition: columns.hpp:301
Definition: columns.hpp:55
Definition: columns.hpp:309
Definition: columns.hpp:30
Definition: columns.hpp:362
Definition: columns.hpp:104
Definition: columns.hpp:79
int getId(const std::string &name)
Will return -1 for an invalid name.
Definition: columns.cpp:377
Definition: columns.hpp:73
Definition: columns.hpp:209
Definition: columns.hpp:33
Definition: columns.hpp:129
Definition: columns.hpp:329
Definition: columns.hpp:187
Definition: columns.hpp:61
Definition: columns.hpp:172
Definition: columns.hpp:36
Definition: columns.hpp:128
Definition: columns.hpp:241
Definition: columns.hpp:126
Definition: columns.hpp:49
Definition: columns.hpp:357
Definition: columns.hpp:242
Definition: columns.hpp:303
Definition: columns.hpp:135
Definition: columns.hpp:207
Definition: columns.hpp:165
Definition: columns.hpp:65
Definition: columns.hpp:252
Definition: columns.hpp:345
Definition: columns.hpp:299
Definition: columns.hpp:31
Definition: columns.hpp:276
Definition: columns.hpp:44
std::string getName(ColumnId column)
Definition: columns.cpp:368
Definition: columns.hpp:291
Definition: columns.hpp:32
Definition: columns.hpp:22
Definition: columns.hpp:316
Definition: columns.hpp:50
Definition: columns.hpp:124
Definition: columns.hpp:136
Definition: columns.hpp:119
Definition: columns.hpp:279
Definition: columns.hpp:218
Definition: columns.hpp:132
Definition: columns.hpp:365
Definition: columns.hpp:37
Definition: columns.hpp:70
Definition: columns.hpp:167
Definition: columns.hpp:182
Definition: columns.hpp:107
Definition: columns.hpp:141
Definition: columns.hpp:364
Definition: columns.hpp:360
Definition: columns.hpp:28
Definition: columns.hpp:148
Definition: columns.hpp:317
Definition: columns.hpp:225
Definition: columns.hpp:130
Definition: columns.hpp:106
Definition: columns.hpp:121
Definition: columns.hpp:158
Definition: columns.hpp:213
Definition: columns.hpp:339
Definition: columns.hpp:236
Definition: columns.hpp:163
std::vector< std::string > getEnums(ColumnId column)
Returns an empty vector, if column isn't an enum type column.
Definition: columns.cpp:596
Definition: columns.hpp:162
Definition: columns.hpp:337
Definition: columns.hpp:180
Definition: columns.hpp:114
Definition: columns.hpp:356
Definition: columns.hpp:253
Definition: columns.hpp:188
Definition: columns.hpp:307
Definition: columns.hpp:41
Definition: columns.hpp:212
Definition: columns.hpp:101
Definition: columns.hpp:211
Definition: columns.hpp:93
Definition: columns.hpp:72
Definition: columns.hpp:123
Definition: columns.hpp:367
bool hasEnums(ColumnId column)
Definition: columns.cpp:591
Definition: columns.hpp:95
Definition: columns.hpp:24
Definition: columns.hpp:94
Definition: columns.hpp:323
Definition: columns.hpp:53
Definition: columns.hpp:80
Definition: columns.hpp:178
Definition: columns.hpp:321
Definition: columns.hpp:368
Definition: columns.hpp:268
Definition: columns.hpp:251
Definition: columns.hpp:305
Definition: columns.hpp:71
Definition: columns.hpp:205
Definition: columns.hpp:113
Definition: columns.hpp:295
Definition: columns.hpp:133
Definition: columns.hpp:88
Definition: columns.hpp:164
Definition: columns.hpp:208
Definition: columns.hpp:19
Definition: columns.hpp:358
Definition: columns.hpp:45
Definition: columns.hpp:112
Definition: columns.hpp:25
Definition: columns.hpp:64
Definition: columns.hpp:62
Definition: columns.hpp:183
Definition: columns.hpp:310
Definition: columns.hpp:336
Definition: columns.hpp:18
Definition: columns.hpp:298
Definition: columns.hpp:40
Definition: columns.hpp:54
Definition: columns.hpp:248
Definition: columns.hpp:144
Definition: columns.hpp:56
Definition: columns.hpp:286
Definition: columns.hpp:315
Definition: columns.hpp:226
Definition: columns.hpp:282
Definition: columns.hpp:125
Definition: columns.hpp:199
Definition: columns.hpp:344
Definition: columns.hpp:198
Definition: columns.hpp:147
Definition: columns.hpp:39
Definition: columns.hpp:179
Definition: columns.hpp:189
Definition: columns.hpp:143
Definition: columns.hpp:322
Definition: columns.hpp:20
Definition: columns.hpp:69
Definition: columns.hpp:146
Definition: columns.hpp:269
Definition: columns.hpp:86
Definition: columns.hpp:137
Definition: columns.hpp:297
Definition: columns.hpp:302
Definition: columns.hpp:233
Definition: columns.hpp:67
Definition: columns.hpp:111
Definition: columns.hpp:193
Definition: columns.hpp:157
Definition: columns.hpp:63
Definition: columns.hpp:237
Definition: columns.hpp:115
Definition: columns.hpp:127
Definition: columns.hpp:204
Definition: columns.hpp:117
Definition: columns.hpp:116
Definition: columns.hpp:48
Definition: columns.hpp:142
Definition: columns.hpp:273
Definition: columns.hpp:217
Definition: columns.hpp:84
Definition: columns.hpp:283
Definition: columns.hpp:52
Definition: columns.hpp:332
Definition: columns.hpp:234
Definition: columns.hpp:139
Definition: columns.hpp:280
Definition: columns.hpp:42
Definition: columns.hpp:277
Definition: columns.hpp:190
Definition: columns.hpp:227
Definition: columns.hpp:38
Definition: columns.hpp:300
Definition: columns.hpp:76
ColumnId
Definition: columns.hpp:13
Definition: columns.hpp:175
Definition: columns.hpp:256
Definition: columns.hpp:325
Definition: columns.hpp:47
Definition: columns.hpp:278
Definition: columns.hpp:150
Definition: columns.hpp:203
Definition: columns.hpp:169
Definition: columns.hpp:366
Definition: columns.hpp:26
Definition: columns.hpp:324
Definition: columns.hpp:210
Definition: columns.hpp:320
Definition: columns.hpp:186
Definition: columns.hpp:353
Definition: columns.hpp:176
Definition: columns.hpp:174
Definition: columns.hpp:338
Definition: columns.hpp:350
Definition: columns.hpp:149
Definition: columns.hpp:131
Definition: columns.hpp:15
Definition: columns.hpp:219
Definition: columns.hpp:363
Definition: columns.hpp:118
Definition: columns.hpp:287
Definition: columns.hpp:326
Definition: columns.hpp:249
Definition: columns.hpp:23
Definition: columns.hpp:74
Definition: columns.hpp:266
Definition: columns.hpp:92
Definition: columns.hpp:134
Definition: columns.hpp:191
Definition: columns.hpp:87
Definition: columns.hpp:270
Definition: columns.hpp:16
Definition: columns.hpp:140
Definition: columns.hpp:161
Definition: columns.hpp:100
Definition: columns.hpp:166
Definition: columns.hpp:138
Definition: columns.hpp:43
Definition: columns.hpp:103
Definition: columns.hpp:264
Definition: columns.hpp:263
Definition: columns.hpp:145
const char * name
Definition: crashcatcher.cpp:59
Definition: columns.hpp:319
Definition: columns.hpp:108