Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 9, 2007, 11:21:14 PM (17 years ago)
Author:
landauf
Message:
  • added comments and doxygen-tags to the ConfigValueContainer
  • changed some comments in the other files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/core/CoreIncludes.h

    r443 r447  
    11/**
    22    @file CoreIncludes.h
    3     @brief Definition of macros for the class-hierarchy and the factory.
     3    @brief Definition of macros and typedefs.
    44
    55    Every class needs the RegisterObject(class) macro in its constructor. If the class is an interface
     
    2121#include "OgreColourValue.h"
    2222
     23
     24// Some typedefs
    2325namespace orxonox
    2426{
     
    2729}
    2830
    29 // Intern macro, containing the common parts of RegisterObject and RegisterRootObject
     31
     32/**
     33    @brief Intern macro, containing the common parts of RegisterObject and RegisterRootObject.
     34    @param ClassName The name of the class
     35    @param bRootClass True if the class is directly derived from OrxonoxClass
     36*/
    3037#define InternRegisterObject(ClassName, bRootClass) \
    3138    this->setIdentifier(ClassIdentifier<ClassName>::registerClass(this->getParents(), #ClassName, bRootClass)); \
     
    3441    ClassIdentifier<ClassName>::addObject(this)
    3542
    36 // Intern macro, containing the specific part of RegisterRootObject
     43/**
     44    @brief Intern macro, containing the specific part of RegisterRootObject.
     45    @param ClassName The name of the class
     46*/
    3747#define InternRegisterRootObject(ClassName) \
    3848    if (Identifier::isCreatingHierarchy() && !this->getParents()) \
     
    4050    InternRegisterObject(ClassName, true)
    4151
    42 // RegisterObject - with and without debug output
     52/**
     53    @brief RegisterObject - with and without debug output.
     54    @param ClassName The name of the class
     55*/
    4356#if HIERARCHY_VERBOSE
    4457#define RegisterObject(ClassName) \
     
    5063#endif
    5164
    52 // RegisterRootObject - with and without debug output
     65/**
     66    @brief RegisterRootObject - with and without debug output.
     67    @param ClassName The name of the class
     68*/
    5369#if HIERARCHY_VERBOSE
    5470#define RegisterRootObject(ClassName) \
     
    6076#endif
    6177
    62 // Class(ClassName) returns the Identifier of the given class
     78/**
     79    @brief Returns the Identifier of the given class.
     80    @param ClassName The name of the class
     81*/
    6382#define Class(ClassName) \
    6483    ClassIdentifier<ClassName>::getIdentifier()
    6584
    66 // Creates the entry in the Factory
     85/**
     86    @brief Creates the entry in the Factory.
     87    @param ClassName The name of the class
     88*/
    6789#define CreateFactory(ClassName) \
    6890    bool bCreated##ClassName##Factory = ClassFactory<ClassName>::create()
    6991
    70 // ID(StringOrInt) returns the Identifier with either a given name or a given NetworkID through the factory
     92/**
     93    @brief Returns the Identifier with either a given name or a given network ID through the factory.
     94    @param StringOrInt The name or the network ID of the class
     95*/
    7196#define ID(StringOrInt) \
    7297    Factory::getIdentifier(StringOrInt)
    7398
    74 // bla
     99/**
     100    @brief Assigns the value, defined in the config-file, to the variable (or the default-value, if there is no entry in the file).
     101    @param varname The name of the variable
     102    @param defvalue The default-value of the variable
     103*/
    75104#define SetConfigValue(varname, defvalue) \
    76105    ConfigValueContainer* container##varname = this->getIdentifier()->getConfigValueContainer(#varname); \
Note: See TracChangeset for help on using the changeset viewer.