Changeset 7291 for code/branches/doc/src/libraries/core
- Timestamp:
- Aug 31, 2010, 5:19:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/XMLPort.h
r7284 r7291 153 153 With this macro, you can simply use them instead of writing your own functions. 154 154 155 @example155 Example: 156 156 Your class is called SpaceShip and this class has an object (myPilot_) of class Pilot. Pilot has a name 157 157 and two functions, setName(name) and getName(). Now you want an attribute "pilotname" in your … … 231 231 } 232 232 233 @example233 Example: 234 234 Possible usage of the macro: 235 235 > XMLPortObject(SpaceShip, Weapon, "weapons", addWeapon, getWeapon, xmlelement, mode, false, true);
Note: See TracChangeset
for help on using the changeset viewer.