Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/howto/XMLPort


Ignore:
Timestamp:
Apr 12, 2017, 11:50:29 PM (8 years ago)
Author:
landauf
Comment:

fixed links

Legend:

Unmodified
Added
Removed
Modified
  • code/howto/XMLPort

    v3 v4  
    11= HowTo: XML Loading =
    2 [[TracNav(TracNav/TOC_Development)]]
    32
    43To make a new class XML-loadable, you have to do three things:
    54
    65== 1. Derive from !BaseObject ==
    7 First the new class has to derive directly or indirectly from [wiki:BaseObject] (indirectly: deriving from another class following the same rule):
     6First the new class has to derive directly or indirectly from [wiki:doc/BaseObject] (indirectly: deriving from another class following the same rule):
    87
    98MyClass.h file:
     
    3332
    3433== 2. Register Class and Object ==
    35 Additionally you have to register the new class in the framework. Use the [wiki:CoreIncludes RegisterClass] macro outside a function in a source file:
     34Additionally you have to register the new class in the framework. Use the [wiki:doc/CoreIncludes RegisterClass] macro outside a function in a source file:
    3635
    3736MyClass.cc file:
     
    5150
    5251== 3. XMLPort ==
    53 At last you have to implement the [wiki:XMLPort] function for the new class:
     52At last you have to implement the [wiki:doc/XMLPort] function for the new class:
    5453{{{
    5554void MyClass::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     
    6766}}}
    6867Read the related page to learn more about XMLPort and how to load parameters and subobjects:
    69  * [wiki:XMLPort]
     68 * [wiki:doc/XMLPort]