indigoX
filereader.hpp
Go to the documentation of this file.
1 
10 #ifndef INDIGOX_UTILS_FILEREADER_HPP
11 #define INDIGOX_UTILS_FILEREADER_HPP
12 #include <string>
13 #include <vector>
14 
15 namespace indigox { namespace utils {
16 
22  class FileReader {
23 
24  public:
25  FileReader() = delete; // No default constructor
27  FileReader(const std::string &);
28 
30  void GetAllLines(std::vector<std::string> &);
31  inline void SetFilePath(const std::string &p) { path_ = p; }
32 
33  private:
34  std::string path_;
35  };
36 
37 }} // namespace indigox::utils
38 
39 #endif /* INDIGOX_UTILS_FILEREADER_HPP */
void GetAllLines(std::vector< std::string > &)
Reads the file from disk.
Namespace for all graph related functionality.
Definition: access.hpp:7
void SetFilePath(const std::string &p)
Definition: filereader.hpp:31
Class for reading simple text file from disk.
Definition: filereader.hpp:22