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 / 10648
10647  |  10649
Subject: 
Re: Convention for directoried for unofficial parts?
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 10 Jul 2007 02:30:54 GMT
Viewed: 
10250 times
  
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.)

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.

--Travis



Message has 1 Reply:
  Re: Convention for directoried for unofficial parts?
 
(...) I'm using Qt, and LPub is under GPL, so this sounds perfect. I'm all for standardization, so this sounds great. (...) I'm not looking to judge or criticize anyone. All of our programming efforts are works in progress, so these self analysis' (...) (17 years ago, 10-Jul-07, to lugnet.cad.dev)

Message is in Reply To:
  Convention for directoried for unofficial parts?
 
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. Would the group prefer (...) (17 years ago, 9-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
    

Custom Search

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