Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2015, 11:05:10 PM (9 years ago)
Author:
landauf
Message:

added run-time check for class hierarchy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/class/Identifier.h

    r9667 r10361  
    223223            XMLPortObjectContainer* getXMLPortObjectContainer(const std::string& sectionname);
    224224
     225            virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) = 0;
    225226
    226227        protected:
     
    288289            virtual const std::string& getTypeidName()
    289290                { return this->typeidName_; }
     291
     292            virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object)
     293                { return dynamic_cast<T*>(object) != 0; }
    290294
    291295        private:
Note: See TracChangeset for help on using the changeset viewer.