Mercurial > projects > mde
comparison mde/setup/paths.d @ 85:56c0ddd90193
Intermediate commit (not stable). Changes to init system.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 11:33:51 +0100 |
parents | d8fccaa45d5f |
children | 4d5d53e4f881 |
comparison
equal
deleted
inserted
replaced
84:e0f1ec7fe73a | 85:56c0ddd90193 |
---|---|
329 | 329 |
330 void dataSecCreator (IDataSection delegate (ID) dsC) { /// Set the dataSecCreator | 330 void dataSecCreator (IDataSection delegate (ID) dsC) { /// Set the dataSecCreator |
331 for (uint i = 0; i < readersLen; ++i) readers[i].dataSecCreator = dsC; | 331 for (uint i = 0; i < readersLen; ++i) readers[i].dataSecCreator = dsC; |
332 } | 332 } |
333 | 333 |
334 /** Get identifiers for all sections. | 334 /** Get identifiers for all sections. |
335 * | 335 * |
336 * Note: the identifiers from all sections in all files are just strung together, starting with | 336 * Note: the identifiers from all sections in all files are just strung together, starting with |
337 * the highest-priority file. */ | 337 * the highest-priority file. */ |
338 ID[] getSectionNames () { | 338 ID[] getSectionNames () { |
339 ID[] names; | 339 ID[] names; |
340 for (int i = readersLen-1; i >= 0; --i) names ~= readers[i].getSectionNames; | 340 for (int i = readersLen-1; i >= 0; --i) names ~= readers[i].getSectionNames; |
341 return names; | 341 return names; |
342 } | 342 } |
343 void read () { /// Commence reading | 343 void read () { /// Commence reading |
344 for (uint i = 0; i < readersLen; ++i) readers[i].read(); | 344 for (uint i = 0; i < readersLen; ++i) readers[i].read(); |
345 } | 345 } |
346 void read (ID[] secSet) { /// ditto | 346 void read (ID[] secSet) { /// ditto |
347 for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); | 347 for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); |
348 } | 348 } |
349 void read (View!(ID) secSet) { /// ditto | 349 void read (IContainer !(ID) secSet) { /// ditto |
350 for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); | 350 for (uint i = 0; i < readersLen; ++i) readers[i].read(secSet); |
351 } | 351 } |
352 | 352 |
353 private: | 353 private: |
354 IReader[MAX_PATHS] readers; | 354 IReader[MAX_PATHS] readers; |
355 ubyte readersLen = 0; | 355 ubyte readersLen = 0; |
356 | 356 |
357 PRIORITY rdOrder; | 357 PRIORITY rdOrder; |
358 } | 358 } |
359 } | 359 } |
360 | 360 |
361 /// Thrown when makeMTReader couldn't find a file. | 361 /// Thrown when makeMTReader couldn't find a file. |