Version 3.6.0.2, tag libreoffice-3.6.0.2
[LibreOffice.git] / l10ntools / inc / l10ntools / directory.hxx
blobd70e5fe333faf4d417034ce7f5a5e33244827f85
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>
6 #ifdef WNT
7 #else
8 #include <dirent.h>
9 #include <unistd.h>
10 #include <sys/stat.h>
11 #endif
13 #include <stdio.h>
15 #ifndef L10NTOOLS_FILE_HXX
16 #define L10NTOOLS_FILE_HXX
17 #include <l10ntools/file.hxx>
18 #endif
20 namespace transex{
22 class Directory
24 private:
25 rtl::OUString sDirectoryName;
26 rtl::OUString sFullName;
28 std::vector<Directory> aDirVec;
29 std::vector<File> aFileVec;
31 public:
32 std::vector<Directory> getSubDirectories() { return aDirVec; }
33 std::vector<File> getFiles() { return aFileVec; }
35 void readDirectory( const rtl::OUString& sFullpath );
36 void scanSubDir( int nLevels = 0 );
38 rtl::OUString getDirectoryName() { return sDirectoryName; }
39 rtl::OUString getFullName() { return sFullName ; }
41 void dump();
42 Directory(){}
44 Directory( const rtl::OUString sFullPath , const rtl::OUString sEntry ) ;
46 static bool lessDir ( const Directory& rKey1, const Directory& rKey2 ) ;
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */