LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/l10ntools/inc - common.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2013-07-09 Functions: 3 3 100.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             : 
      10             : // Methods used by all of executables
      11             : 
      12             : #ifndef INCLUDED_L10NTOOLS_SOURCE_COMMON_HXX
      13             : #define INCLUDED_L10NTOOLS_SOURCE_COMMON_HXX
      14             : 
      15             : #include "sal/config.h"
      16             : 
      17             : #include <iostream>
      18             : #include <rtl/string.hxx>
      19             : #include "po.hxx"
      20             : 
      21             : namespace common {
      22             : 
      23             : /// Result type of handleArguments()
      24          39 : struct HandledArgs
      25             : {
      26             :     OString m_sInputFile;
      27             :     OString m_sOutputFile;
      28             :     OString m_sMergeSrc;
      29             :     OString m_sLanguage;
      30             :     bool m_bMergeMode;
      31          26 :     HandledArgs()
      32             :         : m_sInputFile( OString() )
      33             :         , m_sOutputFile( OString() )
      34             :         , m_sMergeSrc( OString() )
      35             :         , m_sLanguage( OString() )
      36          26 :         , m_bMergeMode( false )
      37          26 :     {}
      38             : };
      39             : 
      40             : /// Handle command line parameters
      41             : bool handleArguments(int argc, char * argv[], HandledArgs& o_aHandledArgs);
      42             : 
      43             : /// Write out a help about usage
      44             : void writeUsage(const OString& rName, const OString& rFileType);
      45             : 
      46             : /// Write out a PoEntry with attention to excaptions
      47             : void writePoEntry(
      48             :     const OString& rExecutable, PoOfstream& rPoStream, const OString& rSourceFile,
      49             :     const OString& rResType, const OString& rGroupId, const OString& rLocalId,
      50             :     const OString& rHelpText, const OString& rText, const PoEntry::TYPE eType = PoEntry::TTEXT );
      51             : 
      52             : }
      53             : 
      54             : #endif
      55             : 
      56             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10