Topic: Supporting Properties and Components


Author: Rinie Kervel <rinie@xs4all.nl>
Date: 1997/01/26
Raw View
------------289F50D470DD0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

I really like the advanced features of C++ (operator overloading
templates etc..) compared to languages as Delphi or Java.

Delphi and Java however offer support for properties and components.
Combined these give you a design-time interface (Property
Inspector) that allow you to create clean user interface and database
code without tons of code generated by so called wizards. (It is very
easy to add or remove an object afterwards).
The non-default properties are loaded from a resource file instead of
hardcoded in the soure.

I just downloaded a trial version of Borlands C++Builder  (Delphi for
C++) and they had to add features to C++ to support
their VCL component model (see http://www.borland.com).

So now my question is:
    - Are there any suggestions of supporting properties and
introspection for C++.
    - If not would it be that hard to support the features in Java for
JavaBeans in C++

Rinie


------------289F50D470DD0
Content-Transfer-Encoding: 7bit
Content-Type: text/html; charset=us-ascii

<HTML><BODY>

<DT>I really like the advanced features of C++&nbsp;(operator overloading
templates etc..)&nbsp;compared to languages as Delphi or Java.</DT>

<DT>&nbsp;</DT>

<DT>Delphi and Java however offer support for properties and components.</DT>

<DT>Combined these give you a design-time interface
(Property Inspector)&nbsp;that
allow you to create clean user interface and database code without tons
of code generated by so called wizards. (It is very easy to add or remove
an object afterwards).</DT>

<DT>The non-default properties are loaded from a resource file instead
of hardcoded in the soure.</DT>

<DT>&nbsp;</DT>

<DT>I&nbsp;just downloaded a trial version of Borlands C++Builder&nbsp;
(Delphi for C++)&nbsp;and they had to add features to C++&nbsp;to support</DT>

<DT>their VCL&nbsp;component model (see http://www.borland.com).</DT>

<DT>&nbsp;</DT>

<DT>So now my question is:</DT>

<DT>&nbsp;&nbsp;&nbsp; - Are there any suggestions of supporting properties
and introspection for C++.</DT>

<DT>&nbsp;&nbsp;&nbsp; - If not would it be that hard to support the features
in Java for JavaBeans in C++&nbsp;</DT>

<DT>&nbsp;</DT>

<DT>Rinie</DT>

<DT>&nbsp;</DT>

</BODY>
</HTML>
------------289F50D470DD0--
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]