Changeset 61:f3ca80877de0 in rrlib_util for sFileIOUtils.h


Ignore:
Timestamp:
20.07.2012 14:28:58 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Children:
62:1c2de600a8dd, 63:ab4c2476f9ce
Phase:
public
Message:

Adapted to changes in rrlib_logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sFileIOUtils.h

    r53 r61  
    134134  { 
    135135    std::ofstream output_file_stream; 
    136     RRLIB_LOG_PRINT(rrlib::logging::eLL_DEBUG_VERBOSE_1, "got file <", filename, ">"); 
     136    RRLIB_LOG_PRINT(DEBUG_VERBOSE_1, "got file <", filename, ">"); 
    137137    if (sStringUtils::EndsWith(filename, ".bz2")) 
    138138    { 
    139       RRLIB_LOG_PRINT(rrlib::logging::eLL_DEBUG_VERBOSE_1, "compressing"); 
     139      RRLIB_LOG_PRINT(DEBUG_VERBOSE_1, "compressing"); 
    140140      boost::iostreams::filtering_ostream out; 
    141141      out.push(boost::iostreams::bzip2_compressor()); 
    142142      output_file_stream.open(filename.c_str()); 
    143       if ( output_file_stream ) 
     143      if (output_file_stream) 
    144144      { 
    145145        out.push(output_file_stream); 
     
    151151    { 
    152152      output_file_stream.open(filename.c_str()); 
    153       if ( output_file_stream ) 
     153      if (output_file_stream) 
    154154      { 
    155155        std::copy(content.begin(), content.end(), std::ostream_iterator<T>(output_file_stream)); 
     
    172172  { 
    173173    std::ifstream input_file_stream; 
    174     RRLIB_LOG_PRINT(rrlib::logging::eLL_DEBUG_VERBOSE_1, "got file <", filename, ">"); 
     174    RRLIB_LOG_PRINT(DEBUG_VERBOSE_1, "got file <", filename, ">"); 
    175175    if (sStringUtils::EndsWith(filename, ".bz2")) 
    176176    { 
    177       RRLIB_LOG_PRINT(rrlib::logging::eLL_DEBUG_VERBOSE_1, "decompressing"); 
     177      RRLIB_LOG_PRINT(DEBUG_VERBOSE_1, "decompressing"); 
    178178      boost::iostreams::filtering_istream in; 
    179179      in.push(boost::iostreams::bzip2_decompressor()); 
Note: See TracChangeset for help on using the changeset viewer.