Ignore:
Timestamp:
10/01/10 11:32:41 (14 years ago)
Author:
hozdoba
Message:

Commit pour sauvegarde - diverses corrections de bogues et améliorations du code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp

    r122 r124  
    4343         string getName(void) const {return (T::GetName()); } 
    4444 
    45          const T* getBaseObject(void) const { return (baseObject); } 
     45         T* getBaseObject(void) const { return (baseObject); } 
    4646 
    4747         virtual T* getReference(void) const { return (NULL); } 
     48 
     49         const vector<T*>& getVectRefObject(void) const { return (refObject); } 
     50 
     51         bool hasRefObject(void) { return (!refObject.empty()); } 
     52 
     53         const T* addRefObject(T* obj) 
     54         { refObject.push_back (obj); return (obj); } 
    4855 
    4956         virtual bool hasChild(void) const { return (false); } 
     
    7885            // Rien à faire. 
    7986         } 
     87 
     88      public : /* static */ 
    8089 
    8190         static T* CreateObject(const string& _id) throw (XMLIOUndefinedValueException) 
     
    119128      protected : 
    120129 
    121          ObjectTemplate(void) : AbstractObject(), baseObject(NULL) 
     130         ObjectTemplate(void) : AbstractObject(), baseObject(NULL), refObject() 
    122131         {/* Ne rien faire de plus */} 
    123          ObjectTemplate(const string& _id) : AbstractObject(_id), baseObject(NULL) 
     132         ObjectTemplate(const string& _id) : AbstractObject(_id), baseObject(NULL), refObject() 
    124133         {/* Ne rien faire de plus */} 
    125134 
     
    145154      private : 
    146155         T* baseObject; 
     156         vector<T*> refObject; 
    147157 
    148158         static string CurrContext; 
Note: See TracChangeset for help on using the changeset viewer.