Changeset 363

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

Link_Expander prejmenovan na SettingsResolver?

Location:
bdm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • bdm/user_info.cpp

    r358 r363  
    102102///////////////////////// INTERNAL LINK EXPANDER ///////////////////////////////////////////// 
    103103 
    104 UI::Link_Expander::Link_Expander( const Setting &potential_link ) 
     104UI::SettingsResolver::SettingsResolver( const Setting &potential_link ) 
    105105{ 
    106106    file = NULL; 
     
    129129} 
    130130 
    131 UI::Link_Expander::~Link_Expander() 
     131UI::SettingsResolver::~SettingsResolver() 
    132132{ 
    133133    if ( file ) delete file; 
    134134} 
    135135 
    136 const Setting& UI::Link_Expander::root() const 
     136const Setting& UI::SettingsResolver::root() const 
    137137{ 
    138138    return *result; 
     
    211211void UI::from_setting( mat& matrix, const Setting &element ) 
    212212{ 
    213     const Link_Expander link_expander( element ); 
     213    const SettingsResolver link_expander( element ); 
    214214    const Setting &root = link_expander.root(); 
    215215 
     
    265265void UI::from_setting( ivec &vector, const Setting &element ) 
    266266{ 
    267     const Link_Expander link_expander( element ); 
     267    const SettingsResolver link_expander( element ); 
    268268    const Setting &root = link_expander.root(); 
    269269 
     
    329329void UI::from_setting( vec &vector, const Setting &element ) 
    330330{ 
    331     const Link_Expander link_expander( element ); 
     331    const SettingsResolver link_expander( element ); 
    332332    const Setting &root = link_expander.root(); 
    333333 
  • 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.