LCOV - code coverage report
Current view: top level - libreoffice/cosv/source/service - std_outp.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 16 43.8 %
Date: 2012-12-27 Functions: 4 5 80.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #define CSV_USE_CSV_ASSERTIONS
      21             : #include <cosv/csv_env.hxx>
      22             : 
      23             : #include <cosv/comfunc.hxx>
      24             : #include <cosv/string.hxx>
      25             : #include <cosv/streamstr.hxx>
      26             : #include <cosv/std_outp.hxx>
      27             : #include <cosv/tpl/dyn.hxx>
      28             : 
      29             : // NOT FULLY DECLARED SERVICES
      30             : #include <stdlib.h>
      31             : 
      32             : 
      33             : namespace csv
      34             : {
      35             : 
      36             : #ifdef CSV_NO_IOSTREAMS
      37             : redirect_out *  redirect_out::pStdOut_ = 0;
      38             : redirect_out *  redirect_out::pStdErr_ = 0;
      39             : #endif // defined(CSV_NO_IOSTREAMS)
      40             : 
      41             : 
      42             : void
      43        4156 : Endl( ostream & io_rStream )
      44             : {
      45             : #ifndef CSV_NO_IOSTREAMS
      46             : //    if (NOT bUseRedirect)
      47        4156 :         io_rStream << std::endl;
      48             : //    else
      49             : #endif
      50             : //        static_cast< redirect_out& >(io_rStream).re_endl();
      51        4156 : }
      52             : 
      53             : void
      54        7950 : Flush( ostream & io_rStream )
      55             : {
      56             : #ifndef CSV_NO_IOSTREAMS
      57             : //    if (NOT bUseRedirect)
      58        7950 :         io_rStream << std::flush;
      59             : //    else
      60             : #endif
      61             : //        static_cast< redirect_out& >(io_rStream).re_flush();
      62        7950 : }
      63             : 
      64             : void
      65           0 : PerformAssertion(const char * condition, const char * file, unsigned line)
      66             : {
      67           0 :     Cout() << "assertion failed: "
      68           0 :          << condition
      69           0 :          << " in file: "
      70           0 :          << file
      71           0 :          << " at line: "
      72           0 :          << line
      73           0 :          << Endl;
      74             : 
      75           0 :     exit(3);
      76             : }
      77             : 
      78           3 : }   // namespace csv
      79             : 
      80             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10