here are just a few examples i made up in my mind for the design of the gobj object model:
example 1:
you intend to write a documentation for your product and you are now searching for the fitting documentation system. you recognize that there are several possibilities such as: html, tex, texinfo, windows-help, ms word, pdf, raw text, man, ...but as you may want to publish your documentation in many different forms, you have to notice that it is difficult to convert your text from one of this types to another.
the gobj solution of this problem is that you create a
textobject to which you add your text in content-based formatting (eg. divided into chapters, sections etc). to convert your text into on of the types above, just use the appropriate view of thetextobject (such ashtml,texetc).example 2:
you want to solve the equation 5x+4=7.there are two possible ways in gobj to solve this problem:
you create anequationobject with the sub-objects (called children)addition(multiplication(5, x), 4)and7. then you use thesolveview of theequationobject to solve it.but there is also an even easier solution. create a
math-parserobject to convert the text"5x+4=7"into the appropiate gobj-tree (as above)and pass it to anequationobject to solve it.
