Changes between Version 1 and Version 2 of code/howto/ClassHierarchy
- Timestamp:
- Oct 10, 2008, 1:19:19 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/ClassHierarchy
v1 v2 12 12 *.h file: 13 13 {{{ 14 #include "core/BaseObject.h" 15 14 16 class MyClass : public BaseObject 15 17 { … … 19 21 20 22 or 23 24 #include "objects/SomeOtherObject.h" 21 25 22 26 class MyClass : public SomeOtherObject … … 29 33 *.cc file: 30 34 {{{ 35 #include "core/CoreIncludes.h" 36 31 37 CreateFactory(MyClass); // optional 32 38 … … 45 51 *.h file: 46 52 {{{ 53 #include "core/OrxonoxClass.h" 54 47 55 class MyInterface : virtual public OrxonoxClass 48 56 { … … 54 62 *.cc file: 55 63 {{{ 64 #include "core/CoreIncludes.h" 65 56 66 // Constructor: 57 67 MyInterface::MyInterface()