RE: [Flightgear-devel] Class name clash and namespaces

2003-01-22 Thread Jon Berndt
I copied over Bernie's changes for namespaces, but have not been able to get the code to compile with FlightGear. The files JSBSim.cxx|hxx need to be aware of the new namespace scoping of JSBSim, and I can't seem to get it to work. Suggestions? Jon smime.p7s Description:

RE: [Flightgear-devel] Class name clash and namespaces

2003-01-22 Thread David Luff
On 1/22/03 at 7:12 AM Jon Berndt wrote: I copied over Bernie's changes for namespaces, but have not been able to get the code to compile with FlightGear. The files JSBSim.cxx|hxx need to be aware of the new namespace scoping of JSBSim, and I can't seem to get it to work. Suggestions? Wouldn't

RE: [Flightgear-devel] Class name clash and namespaces

2003-01-22 Thread Jon Berndt
Wouldn't something like this work? Either: using namespace jsbsim or using jsbsim::FGFDMExec etc... at the top of the files or fdmex = new jsbsim::FGFDMExec etc... everytime its needed. Cheers - Dave You would expect it to, wouldn't you. I added using namespace JSBSim at the

Re: [Flightgear-devel] Class name clash and namespaces

2003-01-22 Thread Bernie Bright
On Wed, 22 Jan 2003 07:50:55 -0600 Jon Berndt [EMAIL PROTECTED] wrote: Wouldn't something like this work? Either: using namespace jsbsim or using jsbsim::FGFDMExec etc... at the top of the files or fdmex = new jsbsim::FGFDMExec etc... everytime its needed.

Re: [Flightgear-devel] Class name clash and namespaces

2003-01-22 Thread Jon S Berndt
On Thu, 23 Jan 2003 07:53:59 +1100 Bernie Bright [EMAIL PROTECTED] wrote: Forward declarations must be in a namespace: namespace JSBSim { class FGState; class FGAtmosphere; class FGFCS; class FGPropulsion; class FGMassBalance; class FGAerodynamics; class FGInertial; class FGAircraft; class

RE: [Flightgear-devel] Class name clash and namespaces

2003-01-21 Thread Jon Berndt
Just added namespace jsbsim { ... } to latest CVS JSBSim and got a clean compile and link. I'm not in a position to test at the moment. BTW FGConditon was missing from filtersjb/Makefile.am. Ah, yes. I need to go in and change that. Thanks. I'll probably recommend that this current version

RE: [Flightgear-devel] Class name clash and namespaces

2003-01-21 Thread David Megginson
Jon Berndt writes: Ah, yes. I need to go in and change that. Thanks. I'll probably recommend that this current version of JSBSim (0.9.4) gets moved into FlightGear CVS very soon. Question: Did you add namespace usage to ALL JSBSim files? I tried it with just FGCondition (to minimize

RE: [Flightgear-devel] Class name clash and namespaces

2003-01-21 Thread Jon Berndt
That sounds like a very good idea, especially since JSBSim tends to use the FG* prefix in its classes, just like FlightGear does. Why don't we update JSBSim in FlightGear as soon as the whole thing is moved into the jsbsim Namespace and tested. I got Bernie's code (Thanks Bernie). What is

Re: [Flightgear-devel] Class name clash and namespaces

2003-01-20 Thread Jon S Berndt
On Tue, 21 Jan 2003 09:07:57 +1100 Bernie Bright [EMAIL PROTECTED] wrote: On Mon, 20 Jan 2003 07:37:54 -0600 Jon Berndt [EMAIL PROTECTED] wrote: I remember having this conversation before. If you have the FlightGear source then check the YASim fdm code. Its all in namespace yasim.