Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 23, 2013, 4:34:14 PM (11 years ago)
Author:
landauf
Message:

fabricate() should return OrxonoxClass*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/SubclassIdentifier.h

    r8858 r9556  
    5353    There are two possibilities to create an object out of a SubclassIdentifier: Either you just use
    5454    the @c fabricate() function of the assigned Identifier through the overloaded @c operator->, which
    55     returns a @c BaseObject* pointer, or you use the function of SubclassIdentifier, this time by using
     55    returns a @c OrxonoxClass* pointer, or you use the function of SubclassIdentifier, this time by using
    5656    @c operator., which returns a @c BaseClass* pointer (@a BaseClass is the baseclass specified by the
    5757    template argument):
    5858    @code
    59     identifier->fabricate();    // calls Identifier::fabricate(), creates a SubClass, returns a BaseObject* pointer
     59    identifier->fabricate();    // calls Identifier::fabricate(), creates a SubClass, returns a OrxonoxClass* pointer
    6060
    6161    identifier.fabricate();     // calls SubclassIdentifier::fabricate(), creates a SubClass, returns a BaseClass* pointer
     
    165165            T* fabricate(BaseObject* creator) const
    166166            {
    167                 BaseObject* newObject = this->identifier_->fabricate(creator);
     167                OrxonoxClass* newObject = this->identifier_->fabricate(creator);
    168168
    169169                // Check if the creation was successful
Note: See TracChangeset for help on using the changeset viewer.