Published on 01-14-2012 03:08 PM
Number of Views: 1080
Class reflection provides run-time introspection of classes, which enables for example versioned object serialization, exposing class variables in editors and data replication for networking. Instead of writing specific code for each class for all these systems, the systems can utilize generic class reflection relieving programmers from writing and maintaining tons of system specific code. However, because C++ language doesn't have intrinsic support for class reflection, Spin-X Platform provides a reflection infrastructure as a collection of macros, which can be used to easily add reflection to existing C++ classes.