Changeset 157

Show
Ignore:
Timestamp:
09/02/08 01:19:09 (16 years ago)
Author:
mido
Message:

drobny patch UI, posledni??

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/userinfo.h

    r156 r157  
    383383        } 
    384384 
    385 public: 
    386385        //! the only instance of this class (each type T has its own instance) 
    387386        //! which is used as a factory for processing related userinfos 
     
    484483        }; 
    485484 
    486         CompoundUserInfo<T>( string userFriendlyTypeName ) 
    487                 : TypedUserInfo<T>( userFriendlyTypeName ) 
    488         { 
    489         } 
    490  
    491 public: 
     485private: 
    492486 
    493487        void AssemblyComponentsFromXML( DOMElement &element ) 
     
    510504                return true; 
    511505        } 
     506 
     507protected: 
     508 
     509        CompoundUserInfo<T>( string userFriendlyTypeName ) 
     510                : TypedUserInfo<T>( userFriendlyTypeName ) 
     511        { 
     512        } 
     513 
    512514}; 
    513515 
     
    525527template<typename T> class ValuedUserInfo : public TypedUserInfo<T> 
    526528{ 
     529private: 
     530        void AssemblyComponentsFromXML( DOMElement &element ) 
     531        {                
     532                value = Attribute::value.Get( element ); 
     533        } 
     534 
     535        bool DisassemblyComponentsToXML( DOMElement &element ) 
     536        { 
     537                Attribute::value.Set( element, value ); 
     538                return true; 
     539        } 
     540 
    527541protected: 
    528542        ValuedUserInfo<T>( string userFriendlyTypeName ) 
     
    535549        } 
    536550 
    537 public: 
    538         //! public attribute which is automatically binded to a proper DOMElement attribute 
     551        //! string variable which is automatically binded to a proper DOMElement attribute 
    539552        string value; 
    540  
    541         void AssemblyComponentsFromXML( DOMElement &element ) 
    542         {                
    543                 value = Attribute::value.Get( element ); 
    544         } 
    545  
    546         bool DisassemblyComponentsToXML( DOMElement &element ) 
    547         { 
    548                 Attribute::value.Set( element, value ); 
    549                 return true; 
    550         } 
    551553}; 
    552554