Ignore:
Timestamp:
06/07/10 18:34:17 (14 years ago)
Author:
hozdoba
Message:

Prise en charge de l'héritage descendant.
Travail sur les flux de sortie.
Correction de divers problÚmes.
Ajout d'une macro à BaseAttribut?.

File:
1 edited

Legend:

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

    r98 r104  
    99      public: 
    1010             
    11          Context(void) : ObjectTemplate<Context>() 
     11         Context(void) : ObjectTemplate<Context>(), fieldDef(NULL) 
    1212         {/* Ne rien faire de plus */}                
    13          Context(const string& _id) : ObjectTemplate<Context>(_id) 
     13         Context(const string& _id) : ObjectTemplate<Context>(_id), fieldDef(NULL) 
    1414         {/* Ne rien faire de plus */} 
    1515          
     
    2020            FieldGroup::SetContext(id); 
    2121            Field::SetContext(id); 
     22         } 
     23          
     24         friend ostream& operator<< (ostream& out, const Context& c)  
     25         {  
     26            out << "<" << c.getName()<< " id=\"" <<  c.getId() << "\">"; 
     27            if(c.fieldDef != NULL) out << std::endl << *(FieldGroup*)c.fieldDef << std::endl; 
     28            out << "</" << c.getName()<< ">"; 
     29            return (out); 
     30         }  
     31          
     32         void resolveDescInheritance(void) 
     33         { 
     34            // Résolution des héritages descendants pour chacun des groupes de définitions. 
     35            fieldDef->resolveDescInheritance(); 
    2236         } 
    2337          
     
    8094         } 
    8195          
    82          virtual const char* getName(void) const {return ("Context"); } 
     96         const char* getName(void) const {return ("Context"); } 
    8397          
    8498         FieldDefinition* getFieldDefinition(void) { return (this->fieldDef); } 
    8599                   
    86100         ~Context() 
    87          { delete fieldDef; } 
    88           
    89       protected: 
     101         { delete fieldDef; }       
     102 
    90103       
    91104      private: 
Note: See TracChangeset for help on using the changeset viewer.