Changeset 769 for library/bdm/bdmroot.h

Show
Ignore:
Timestamp:
01/12/10 20:25:33 (14 years ago)
Author:
smidl
Message:

UI_DBG moved to root, to_string uses UI_DBG by default

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/bdmroot.h

    r766 r769  
    2727namespace bdm { 
    2828 
     29         
     30        //! auxiliary function for debugging 
     31        void UI_DBG (const Setting &S, const string &spc, ostream &out ); 
     32         
    2933//forward declaration 
    3034class logger; 
     
    7478        } 
    7579 
    76         //! Returns a basic textual info about the current instance 
     80        //! Returns basic textual info about the current instance 
    7781        virtual string to_string() const { 
    78                 return ""; 
     82                Config C; 
     83                Setting &set=C.getRoot(); 
     84                this->to_setting(set); 
     85                ostringstream os; 
     86                UI_DBG(set, "", os); 
     87                return os.str(); 
    7988        } 
    8089        //! Register itself in a logger, i.e. allocate space for data from this class