SeComLib
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
filesystem.h
Go to the documentation of this file.
1 /*
2 SeComLib
3 Copyright 2012-2013 TU Delft, Information Security & Privacy Lab (http://isplab.tudelft.nl/)
4 
5 Contributors:
6 Inald Lagendijk (R.L.Lagendijk@TUDelft.nl)
7 Mihai Todor (todormihai@gmail.com)
8 Thijs Veugen (P.J.M.Veugen@tudelft.nl)
9 Zekeriya Erkin (z.erkin@tudelft.nl)
10 
11 Licensed under the Apache License, Version 2.0 (the "License");
12 you may not use this file except in compliance with the License.
13 You may obtain a copy of the License at
14 
15 http://www.apache.org/licenses/LICENSE-2.0
16 
17 Unless required by applicable law or agreed to in writing, software
18 distributed under the License is distributed on an "AS IS" BASIS,
19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 See the License for the specific language governing permissions and
21 limitations under the License.
22 */
29 #ifndef FILESYSTEM_HEADER_GUARD
30 #define FILESYSTEM_HEADER_GUARD
31 
32 //include C++ headers
33 #include <iostream>
34 #include <fstream>
35 #include <string>
36 #include <vector>
37 #include <deque>
38 #include <algorithm>
39 #include <stdexcept>
40 
41 //include boost libraries
42 #include <boost/filesystem.hpp>
43 
44 namespace SeComLib {
45 
46 namespace Utils {
47 
52  class Filesystem {
53  public:
55  static std::deque<std::string> GetFilesInDirectory(const std::string &directory);
56 
57  private:
59  Filesystem () {}
60 
63 
65  Filesystem (Filesystem const &);
66 
69  };
70 
71 }//namespace Utils
72 }//namespace SeComLib
73 
74 #endif//FILESYSTEM_HEADER_GUARD
Contains utilitary functions for accessing the filesystem.
Definition: filesystem.h:52
Filesystem()
Default constructor - not implemented.
Definition: filesystem.h:59
~Filesystem()
Destructor - void implementation.
Definition: filesystem.h:62
static std::deque< std::string > GetFilesInDirectory(const std::string &directory)
Traverses the provided directory (non-recursively) and extracts the absolute paths to all the files i...
Definition: filesystem.cpp:40
Filesystem operator=(Filesystem const &)
Copy assignment operator - not implemented.