Subject:
|
Re: Convention for directoried for unofficial parts?
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Tue, 10 Jul 2007 17:29:36 GMT
|
Viewed:
|
11633 times
|
| |
| |
In lugnet.cad.dev, Travis Cobbs wrote:
> In lugnet.cad.dev, Kevin L. Clague wrote:
> > To all developers,
> >
> > The LSC does not want to specify how unofficial parts are handled. Personally
> > if find the recommendation that we pull down individual unofficial parts into
> > the same directory as our LDraw file a hassle.
>
> I agree (which is why I voted yes on the other proposal, although it's not an
> exact match for what you're asking for). Having said that, Lars did offer the
> INI parsing code, and since it's already in LDView (which is under GPL), anyone
> who wants to can already access and use Lars's code. While it's true that INI
> files are a Windows invention, they do make an easily human-readable format for
> settings files, and they are easy to parse. Lars's code does all the parsing,
> and it's written in C (not C++) that has been designed to be as portable as
> possible. I updated his code to provide support for a filename search callback
> function to handle platform-specific case-sensitive file systems. (And I have
> an implementation of one such function in LDView's QT code.)
I'm using Qt, and LPub is under GPL, so this sounds perfect.
I'm all for standardization, so this sounds great.
>
> So if you want my opinion, I think we should all use Lars's code. If you're not
> writing in C, then the code could probably be rolled into a library quite easily
> (although it does use structures, which have varied ease-of-use in non C-based
> programming languages).
>
>
> > Would the group prefer environment variables that provide paths for
> > directories, or known subdirectory names?
>
> Lars's code supports using environment variables for everything, or the
> ldraw.ini for everything (assuming it can find it), or a combination of the two.
> I think what he has is sufficient for use on any OS.
>
> Of course, the fact that I'm already using Lars's code in LDView may make me
> biased. Additionally, I haven't yet updated LDView's "extra dirs" UI to use
> Lars's code, so you might (somewhat legitimately) claim that I'm being
> hypocritical.
I'm not looking to judge or criticize anyone. All of our programming
efforts are works in progress, so these self analysis' are all very
understandable in my book.
>
> --Travis
Kevin
|
|
Message has 1 Reply: | | Re: Convention for directoried for unofficial parts?
|
| (...) The following files in LDView's source tree contain the LDrawIni stuff: LDLoader/LDrawIni.c LDLoader/LDrawIni.h LDLoader/LDrawInP.h There's a #include <TCFoundation/TCDefines.h> near the top of LDrawIni.c. You can delete that; the only reason (...) (17 years ago, 10-Jul-07, to lugnet.cad.dev)
|
Message is in Reply To:
| | Re: Convention for directoried for unofficial parts?
|
| (...) I agree (which is why I voted yes on the other proposal, although it's not an exact match for what you're asking for). Having said that, Lars did offer the INI parsing code, and since it's already in LDView (which is under GPL), anyone who (...) (17 years ago, 10-Jul-07, 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
|
|
|
|