Subject:
|
Re: LDrawIni API (was: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths)
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sun, 21 Mar 2004 14:03:09 GMT
|
Viewed:
|
4392 times
|
| |
| |
In lugnet.cad.dev, Michael Lachmann wrote:
> "Lars C. Hassing" <sp.lars@am.hassings.dk> schrieb:
> > OK, <SKIP> will be parsed into a bit-flag LDSDF_SKIP and
> > LDrawIniComputeRealDirs will have an extra parameter to
> > include/exclude <SKIP> dirs: KeepSkippedDirs, IncludeSkipDirs,
> > DontSkipDirs, ExcludeSkipDirs, SkipSkipDirs - please come up with a
> > good name...
>
> I don't realy care but IncludeSkipDirs sounds reasonable.
I like the LDSDF_SKIP bit-flag but I don't think we need to add a
parameter to to LDrawIniComputeRealDirs(). Here's why. The parameter
would make it all or nothing for skipped dirs. I'd rather toggle the
LDSDF_SKIP bit-flags of some of the directories myself before calling
LDrawIniComputeRealDirs(), because I envision the need for several
distinct groups of skip dirs. Imagine some skip dirs are sorted into
groups by the "unknown" flags:
<group unofficial>
<group bfc>
<group boxes>
<group clones>
Maybe I should be really specific and call them skipgroups. I don't
know yet. Anyhow, I can easily imagine a scenario where I want to
temporarily enable the unofficial parts, but not the rest.
The only problem with my new approach is I have to remember which
directories I toggled the bit-flag in so I can undo it later. Yeah, I
know the original information is still in the private data. Perhaps
instead of a global parameter, you could add another bit-flag for each
directory called LDSF_INCLUDE_SKIP that I could toggle before calling
LDrawIniComputeRealDirs(). Then I could write a quick function to
clear all the LDSF_INCLUDE_SKIP flags, before I set the ones I want
(if any) and call LDrawIniComputeRealDirs().
Don
|
|
Message has 1 Reply:
Message is in Reply To:
132 Messages in This Thread: (Inline display suppressed due to large size. Click Dots below to view.)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|