Changeset 899 for library/bdm/base

Show
Ignore:
Timestamp:
04/11/10 22:04:56 (14 years ago)
Author:
smidl
Message:

correction of loggers

Location:
library/bdm/base
Files:
3 modified

Legend:

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

    r896 r899  
    206206        upsize = rv_up._dsize(); 
    207207        v2v_up = rv.dataind ( rv_up ); 
    208         bdm_assert_debug ( v2v_up.length() == downsize, "rv is not fully in rv_up" ); 
     208        bdm_assert_debug ( v2v_up.length() == downsize, string("rv (" + rv.to_string() + ") is not fully in rv_up(" + rv_up.to_string()) ); 
    209209} 
    210210 
     
    430430        if ( rv._dsize() > 0 ) { 
    431431                id = entries.length(); 
    432                 names = concat ( names, prefix ); // diff 
    433                 if( name.length() > 0 ) 
    434                 { 
    435                         concat( names, separator ); 
    436                         concat( names, name ); 
     432                if( name.length() > 0 ) { 
     433                        names = concat ( names, prefix + separator + name); // diff 
     434                } else { 
     435                        names = concat ( names, prefix ); // diff 
    437436                } 
    438437                entries.set_length ( id + 1, true ); 
  • library/bdm/base/loggers.cpp

    r766 r899  
    3737                istart = 0; 
    3838                for ( int j = 0; j < entries ( i ).length(); j++ ) { // same for as in add!!! 
    39                         vec_name = names ( i ) + entries ( i ).name ( j ); 
     39                        vec_name = names ( i ) + separator + entries ( i ).name ( j ); 
    4040                        iend = istart + entries ( i ).size ( j ) - 1; 
    4141                        itf << Name ( vec_name ) << vectors ( i ).get_cols ( istart, iend ); 
  • library/bdm/base/loggers.h

    r766 r899  
    107107                for ( int i = 0; i < entries.length(); i++ ) { 
    108108                        if ( entries ( i )._dsize() == 1 ) { 
    109                                 cout << names ( i ) << entries ( i ).name ( 0 ) << "\t"; 
     109                                cout << names ( i ) << separator << entries ( i ).name ( 0 ) << "\t"; 
    110110                        } else 
    111111                                for ( int j = 0; j < vectors ( i ).cols(); j++ ) { 
    112                                         cout << names ( i ) << entries ( i ).scalarname ( j ) << "\t"; 
     112                                        cout << names ( i ) << separator << entries ( i ).scalarname ( j ) << "\t"; 
    113113                                } 
    114114                }