Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 1, 2007, 4:24:56 AM (16 years ago)
Author:
landauf
Message:

added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/core/Factory.cc

    r362 r365  
     1/*!
     2    @file Factory.cc
     3    @brief Implementation of the Factory class.
     4*/
     5
    16#include "Factory.h"
    27#include "Identifier.h"
     
    49namespace orxonox
    510{
    6     Factory* Factory::pointer_s = NULL;
     11    Factory* Factory::pointer_s = NULL; // Set the static member variable pointer_s to zero
    712
     13    /**
     14        @returns the Identifier with a given name.
     15        @param name The name of the wanted Identifier
     16    */
    817    Identifier* Factory::getIdentifier(const std::string& name)
    918    {
     
    1423    }
    1524
     25    /**
     26        @returns the Identifier with a given networkID.
     27        @param id The networkID of the wanted Identifier
     28    */
    1629    Identifier* Factory::getIdentifier(const unsigned int id)
    1730    {
     
    2235    }
    2336
     37    /**
     38        @brief Adds a new Identifier to both maps.
     39        @param name The name of the identifier
     40        @param identifier The identifier to add
     41    */
    2442    void Factory::add(const std::string& name, Identifier* identifier)
    2543    {
     
    3149    }
    3250
     51    /**
     52        @brief Removes the entry with the old networkID and adds a new one.
     53        @param identifier The identifier to change
     54        @param oldID The old networkID
     55        @param newID The new networkID
     56    */
    3357    void Factory::changeNetworkID(Identifier* identifier, const unsigned int oldID, const unsigned int newID)
    3458    {
Note: See TracChangeset for help on using the changeset viewer.