Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 6 and Version 7 of code/howto/Synchronisable


Ignore:
Timestamp:
Sep 25, 2008, 10:04:00 PM (16 years ago)
Author:
scheusso
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/howto/Synchronisable

    v6 v7  
    66See also [wiki:network/Synchronisable Synchronisable reference] for more information.
    77== Basic steps ==
     8'''This only applies to classes that don't inherit from a class that (indirectly) inherits from Synchronisable! '''
     9For classes that indirectly inherit from Synchronisable see [wiki:howto/Synchronisable#indirect below]
    810 1. Include the appropriate header file:
    911{{{
     
    9294
    9395 
    94 }
     96};
    9597
    9698}}}
     99
     100== Example class that inherits indirectly from Synchronisable == #indirect
     101These kind of classes only have to do some steps:
     102{{{
     103class ABC: public XYZ {
     104private:
     105  int someInt_;
     106  registerAllVariables(){ REGISTER_DATA(someInt_); }
     107public:
     108  ABC(){
     109    someInt_=0;
     110    registerAllVariables();
     111  }
     112  ~ABC();
     113  bool create(){
     114    if(!XZY::create())
     115      return false;
     116    // do something here ...
     117    return true;
     118  }
     119};
     120 
     121}}}