Changeset 363 for bdm/user_info.h

Show
Ignore:
Timestamp:
06/08/09 16:56:11 (15 years ago)
Author:
mido
Message:

Link_Expander prejmenovan na SettingsResolver?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/user_info.h

    r361 r363  
    108108        }; 
    109109 
    110         // vraci true, kdyz to byl platny link, jinak false.. v pripade chyby konci it_errorem.. 
    111         // do elementu vrati setting prislusny po rozbaleni linku, jinak ponecha beze zmeny 
    112         class Link_Expander      
    113         { 
    114         private: 
    115                 UI_File *file; 
    116                 const Setting *result; 
    117  
    118         public: 
    119  
    120                 Link_Expander( const Setting &potential_link ); 
    121                  
    122                 ~Link_Expander(); 
    123                  
    124                 const Setting& root() const; 
    125         }; 
     110 
    126111 
    127112 
     
    152137        template<class T> static void from_setting( T* &instance, const Setting &element ) 
    153138        {                        
    154                 const Link_Expander link_expander( element ); 
     139                const SettingsResolver link_expander( element ); 
    155140                const Setting &root = link_expander.root(); 
    156141 
     
    192177        template<class T> static void from_setting( Array<T> &array_to_load, const Setting &element ) 
    193178        { 
    194                 const Link_Expander link_expander( element ); 
     179                const SettingsResolver link_expander( element ); 
    195180                const Setting &root = link_expander.root(); 
    196181 
     
    224209        //! according to a data stored in a DOMNode named class_name within a child nodes of the passed element. 
    225210        //! If an error occurs, it returns a NULL pointer. 
     211 
     212        // vraci true, kdyz to byl platny link, jinak false.. v pripade chyby konci it_errorem.. 
     213        // do elementu vrati setting prislusny po rozbaleni linku, jinak ponecha beze zmeny 
     214        class SettingsResolver   
     215        { 
     216        private: 
     217                UI_File *file; 
     218                const Setting *result; 
     219 
     220        public: 
     221 
     222                SettingsResolver( const Setting &potential_link ); 
     223                 
     224                ~SettingsResolver(); 
     225                 
     226                const Setting& root() const; 
     227        }; 
     228 
     229 
    226230 
    227231        //! Prototype of a UI builder. Return value is by the second argument since it type checking via \c dynamic_cast.