Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2008, 12:54:17 PM (16 years ago)
Author:
rgrieder
Message:

Test: replacing namespace network with namespace orxonox. network::packet —> orxonox::packet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/Synchronisable.cc

    r2062 r2112  
    5050// #include "core/Identifier.h"
    5151
    52 namespace network
     52namespace orxonox
    5353{
    5454
     
    6363  * Initializes all Variables and sets the right objectID
    6464  */
    65   Synchronisable::Synchronisable(orxonox::BaseObject* creator){
     65  Synchronisable::Synchronisable(BaseObject* creator){
    6666    RegisterRootObject(Synchronisable);
    6767    static uint32_t idCounter=0;
     
    9696  Synchronisable::~Synchronisable(){
    9797    // delete callback function objects
    98     if(!orxonox::Identifier::isCreatingHierarchy()){
     98    if(!Identifier::isCreatingHierarchy()){
    9999      for(std::list<synchronisableVariable *>::iterator it = syncList->begin(); it!=syncList->end(); it++)
    100100        delete (*it)->callback;
     
    155155    COUT(4) << "fabricating object with id: " << header->objectID << std::endl;
    156156
    157     orxonox::Identifier* id = ClassByID(header->classID);
     157    Identifier* id = ClassByID(header->classID);
    158158    assert(id);
    159     orxonox::BaseObject* creator = 0;
     159    BaseObject* creator = 0;
    160160    if (header->creatorID != OBJECTID_UNKNOWN)
    161161    {
     
    167167      }
    168168      else
    169         creator = dynamic_cast<orxonox::BaseObject*>(synchronisable_creator);
    170     }
    171     orxonox::BaseObject *bo = id->fabricate(creator);
     169        creator = dynamic_cast<BaseObject*>(synchronisable_creator);
     170    }
     171    BaseObject *bo = id->fabricate(creator);
    172172    assert(bo);
    173173    Synchronisable *no = dynamic_cast<Synchronisable *>(bo);
     
    214214   */
    215215  Synchronisable* Synchronisable::getSynchronisable(unsigned int objectID){
    216     orxonox::ObjectList<Synchronisable>::iterator it;
    217     for(it = orxonox::ObjectList<Synchronisable>::begin(); it; ++it){
     216    ObjectList<Synchronisable>::iterator it;
     217    for(it = ObjectList<Synchronisable>::begin(); it; ++it){
    218218      if( it->getObjectID()==objectID )
    219219           return *it;
     
    234234  * @param var pointer to the variable
    235235  * @param size size of the datatype the variable consists of
    236   * @param t the type of the variable (network::DATA or network::STRING
     236  * @param t the type of the variable (DATA or STRING
    237237  * @param mode same as in getData
    238238  * @param cb callback object that should get called, if the value of the variable changes
Note: See TracChangeset for help on using the changeset viewer.