Show
Ignore:
Timestamp:
03/30/10 00:01:05 (14 years ago)
Author:
mido
Message:

redesign of logger::add_vector, and a few small patches.. however, applications WERE NOT ADJUSTED yet

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r871 r889  
    306306        //! Names of logged quantities, e.g. names of algorithm variants 
    307307        Array<string> names; 
    308         //!separator of prefixes of entries 
    309         const string separator; 
    310308        //! Root Setting for storing Settings 
    311309        Config setting_conf; 
     
    316314        logger ( const string separator0 ) : entries ( 0 ), names ( 0 ), separator ( separator0 ) {} 
    317315 
     316        //!separator of prefixes of entries 
     317        //! 
     318        //! It is a constant string, thus it can be safely declared as public without creating any accessor method 
     319        const string separator; 
     320 
     321 
    318322        //! returns an identifier which will be later needed for calling the \c logit() function 
    319323        //! For empty RV it returns -1, this entry will be ignored by \c logit(). 
    320         virtual int add_vector ( const RV &rv, string prefix = "" ); 
     324        virtual int add_vector ( const RV &rv, const string &prefix, const string &name = "" ); 
    321325 
    322326        virtual int add_setting ( const string &prefix ); 
     
    339343        //! Initialize the storage 
    340344        virtual void init() {}; 
    341  
    342         //!separator of prefixes for this logger 
    343         const string& prefix_sep() { 
    344                 return separator; 
    345         } 
    346345}; 
    347346 
     
    512511 
    513512        The following constructors should be supported for convenience: 
    514         \li constructor followed by calling \c set_parameters() 
     513        \li constructor followed by calling \c set_parameters() WHICH IS OBSOLETE (TODO) 
    515514        \li constructor accepting random variables calling \c set_rv() 
    516515 
    517          All internal data structures are constructed as empty. Their values (including sizes) will be set by method \c set_parameters(). This way references can be initialized in constructors. 
     516         All internal data structures are constructed as empty. Their values (including sizes) will be  
     517         set by method \c set_parameters() WHICH IS OBSOLETE (TODO). This way references can be initialized in constructors. 
    518518        @{*/ 
    519519        epdf() {};