LCOV - code coverage report
Current view: top level - l10ntools/inc/l10ntools - directory.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-08-25 Functions: 0 5 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : #include <vector>
       3                 :            : #include <algorithm>
       4                 :            : #include <rtl/ustring.hxx>
       5                 :            : 
       6                 :            : #ifdef WNT
       7                 :            : #else
       8                 :            : #include <dirent.h>
       9                 :            : #include <unistd.h>
      10                 :            : #include <sys/stat.h>
      11                 :            : #endif
      12                 :            : 
      13                 :            : #include <stdio.h>
      14                 :            : 
      15                 :            : #ifndef L10NTOOLS_FILE_HXX
      16                 :            : #define L10NTOOLS_FILE_HXX
      17                 :            : #include <l10ntools/file.hxx>
      18                 :            : #endif
      19                 :            : 
      20                 :            : namespace transex{
      21                 :            : 
      22                 :          0 : class Directory
      23                 :            : {
      24                 :            :     private:
      25                 :            :     rtl::OUString sDirectoryName;
      26                 :            :     rtl::OUString sFullName;
      27                 :            : 
      28                 :            :     std::vector<Directory>  aDirVec;
      29                 :            :     std::vector<File>       aFileVec;
      30                 :            : 
      31                 :            :     public:
      32                 :            :     std::vector<Directory>  getSubDirectories()  { return aDirVec;        }
      33                 :            :     std::vector<File>       getFiles()           { return aFileVec;       }
      34                 :            : 
      35                 :            :     void readDirectory( const rtl::OUString& sFullpath );
      36                 :            :     void scanSubDir( int nLevels = 0 );
      37                 :            : 
      38                 :          0 :     rtl::OUString getDirectoryName()            { return sDirectoryName; }
      39                 :          0 :     rtl::OUString getFullName()                 { return sFullName ;     }
      40                 :            : 
      41                 :            :     void dump();
      42                 :            :     Directory(){}
      43                 :            : 
      44                 :            :     Directory( const rtl::OUString sFullPath , const rtl::OUString sEntry ) ;
      45                 :            : 
      46                 :            :     static bool lessDir ( const Directory& rKey1, const Directory& rKey2 ) ;
      47                 :            : };
      48                 :            : 
      49                 :            : }
      50                 :            : 
      51                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10