To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9639
9638  |  9640
Subject: 
Re: LDrawIni API (was: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths)
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 21 Mar 2004 14:03:09 GMT
Viewed: 
4200 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:
  Re: LDrawIni API (was: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths)
 
(...) The idea was to make it simple for ordinary usage. I guess most programs would call LDrawIniComputeRealDirs() with IncludeSkipDirs=0 and simply search the dirs returned. However, you can call LDrawIniComputeRealDirs with IncludeSkipDirs=1 and (...) (20 years ago, 23-Mar-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDrawIni API (was: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths)
 
"Lars C. Hassing" <sp.lars@am.hassings.dk> schrieb im Newsbeitrag news:HusLAn.8Cz@lugnet.com... (...) <SNIP> (...) LDrawIniComputeRealDirs (...) SkipSkipDirs (...) I don't realy care but IncludeSkipDirs sounds reasonable. (...) the (...) stead. (...) (20 years ago, 19-Mar-04, to lugnet.cad.dev)

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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR