> Has anyone a good idea for the naming of this directory? (For
> simplification of the string operations it should have the same length
> as aircraft has).
>
> Maik
>

Just a quick follow-up: I don't think that simplification of the string 
operations is a good motivation for keeping the directory the same length as 
the name of the main aircraft directory. Restricting the directory name is 
something that will irrevocably backfire on us, and I don't think it is 
necessary. We use SimGear's SGPath classes throughout the program (for 
portability reasons), and it would only be about two or three lines of 
additional code to set up alternative paths for a directory such as 
Aircraft/737-300 and AI/Aircraft/737-300.

As an example of the use of SGPath, have a look at: Airports/simple.cxx  (line 
96).

        SGPath parkpath( globals->get_fg_root() );
        parkpath.append( "/Airports/AI/" );
        parkpath.append(_id);
        parkpath.append("parking.xml");

        SGPath rwyPrefPath( globals->get_fg_root() );
        rwyPrefPath.append( "/Airports/AI/" );
        rwyPrefPath.append(_id);
        rwyPrefPath.append("rwyuse.xml");

Cheers,
Durk

-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to