Meta information

Top  Previous  Next

What is translated > Meta information

 

Delphi has special capabilities to use runtime type information (RTTI) There are class methods that operate on class references instead of objects, which uses this information.

 

C++ Builder has special language extensions and uses the special class TMetaClass to copy these capabilities partly.

 

The most important of these capabilities can be reproduced not only with C++ Builder but with other compilers too by means of the TObject class and the TMetaClass, which are defined in the files d2c_systobj.h and d2c_systobj.cpp and are part of Delphi2Cpp professional installation.

 

Even for C++ Builder the use of the according classes TD2CObject and TD2CMetaClass is necessary, if virtual construction of classes with Create is needed,

 

The use of these classes has to be enabled in the options dialog.

 

 

TObject/TD2CObject

static type objects



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content