Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 24, 2009, 2:47:53 AM (16 years ago)
Author:
landauf
Message:

Removed the Factory class.
Moved the networkID↔Identifier map from Factory to Identifier.
Replaced the name↔Identifier map from Factory with the already existing Identifier map in Identifier. This map additionally contains Identifiers without Factory. You can separate them with the new function identifier→hasFactory().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/ClassFactory.h

    r5777 r5778  
    4242
    4343#include "util/Debug.h"
    44 #include "Factory.h"
    4544#include "Identifier.h"
    4645
     
    7170
    7271    /**
    73         @brief Adds the ClassFactory to the Identifier of the same type and the Identifier to the Factory.
     72        @brief Adds the ClassFactory to the Identifier of the same type.
    7473        @param name The name of the class
    7574        @param bLoadable True if the class can be loaded through XML
    76         @return Always true (this is needed because the compiler only allows assignments before main())
    7775    */
    7876    template <class T>
     
    8280        ClassIdentifier<T>::getIdentifier(name)->addFactory(this);
    8381        ClassIdentifier<T>::getIdentifier()->setLoadable(bLoadable);
    84         Factory::add(name, ClassIdentifier<T>::getIdentifier());
    8582    }
    8683
Note: See TracChangeset for help on using the changeset viewer.