Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 3, 2010, 2:24:14 AM (15 years ago)
Author:
scheusso
Message:

std::set<T> is now synchronisable
this was neccessary to synchronise templates (now used in the Level class)
this was neccessary to synchronise lod templates and configuration

Location:
code/branches/presentation3/src/libraries/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/libraries/core/BaseObject.cc

    r6926 r7105  
    196196    {
    197197        this->templates_.insert(temp);
     198        if( temp->isLink() )
     199        {
     200          this->networkTemplateNames_.insert(temp->getLink());
     201          assert( !Template::getTemplate(temp->getLink())->isLink() );
     202        }
     203        else
     204          this->networkTemplateNames_.insert(temp->getName());
    198205        temp->applyOn(this);
    199206    }
  • code/branches/presentation3/src/libraries/core/BaseObject.h

    r6926 r7105  
    191191            EventState* getEventState(const std::string& name) const;
    192192
    193             std::string name_;                                 //!< The name of the object
    194             std::string oldName_;                              //!< The old name of the object
    195             mbool       bActive_;                              //!< True = the object is active
    196             mbool       bVisible_;                             //!< True = the object is visible
    197             std::string mainStateName_;
    198             Functor*    mainStateFunctor_;
     193            std::string             name_;                     //!< The name of the object
     194            std::string             oldName_;                  //!< The old name of the object
     195            mbool                   bActive_;                  //!< True = the object is active
     196            mbool                   bVisible_;                 //!< True = the object is visible
     197            std::string             mainStateName_;
     198            Functor*                mainStateFunctor_;
     199            std::set<std::string>   networkTemplateNames_;
    199200
    200201        private:
  • code/branches/presentation3/src/libraries/core/Template.h

    r6938 r7105  
    5151            inline const std::string& getLink() const
    5252                { return this->link_; }
     53            inline bool isLink() const
     54                { return this->bIsLink_; }
    5355
    5456            inline void setLoadDefaults(bool bLoadDefaults)
Note: See TracChangeset for help on using the changeset viewer.