Author Topic: relationship between CompilerOptions and CompileOptionBase classes??  (Read 5194 times)

sanjivg

  • Guest
I couldn't understand how CompilerOptions and CompileOptionsBase classes interact?
what is the relationshipbetween them?

shouldn't all the functionality built into CompileOptionBase class be present into CompilerOptions class? ,thereby making the CompileOptionBase class redundant.

TIA
sanjiv

Offline jmccay

  • Almost regular
  • **
  • Posts: 202
Re: relationship between CompilerOptions and CompileOptionBase classes??
« Reply #1 on: September 24, 2005, 11:40:56 pm »
Quote
I couldn't understand how CompilerOptions and CompileOptionsBase classes interact?
what is the relationshipbetween them?

shouldn't all the functionality built into CompileOptionBase class be present into CompilerOptions class? ,thereby making the CompileOptionBase class redundant.

TIA
sanjiv

I haven't looked at those classes yet, but in general CompileOptionsBase would more than likely be a base class allowing for a common base for use in differences when implementing compiler options (maybe in different languages).  It allows for a pluggin arcitecture.  That's just a rough guess.
joe mccay
OS: WinXP, Win98 SE, & sometimes Linux

a little light reading from the wxWidgets 2.6.2 readme: A detailed 2000-page reference manual is supplied in HTML, PDF and Windows Help form: see the docs hierarchy.

sanjivg

  • Guest
Re: relationship between CompilerOptions and CompileOptionBase classes??
« Reply #2 on: September 26, 2005, 10:00:55 am »
Thanks for the reply.

During the weekend I looked into it, and was able to understand it.

CompileOptionBase is a base class for anything that needs support for getting/setting options. It includes the options for entier CompilerSet including compileroptions, includedirs, linkeroptions etc.
The Compiler, Project, and Target classes are derived from it since they need this support.

While CompilerOptions is just an array of CompOption *, which is meant for options listed in checkboxes list in Compiler Flags tab.