Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
text_file.h
1 #pragma once
2 
3 #include "util/string.h"
4 
5 namespace blowbox
6 {
15  class TextFile
16  {
17  public:
22  TextFile(const String& file_path);
23 
27  ~TextFile();
28 
33  const String& GetFilePath() const;
34 
39  const String& GetFileContent() const;
40 
41  private:
44  };
45 }
const String & GetFilePath() const
Returns the file path leading to the file that is encapsulated by the TextFile.
Definition: text_file.cc:33
Wraps the loading and accessing of text files from disk.
Definition: text_file.h:15
~TextFile()
Definition: text_file.cc:27
TextFile(const String &file_path)
Definition: text_file.cc:12
eastl::string String
Typedef for wrapping the EASTL string.
Definition: string.h:13
const String & GetFileContent() const
Returns the contents of the file encapsulated by the TextFile.
Definition: text_file.cc:39
The main Blowbox namespace.
Definition: image.cc:8
String file_content_
Contents of the file that is encapsulated by the TextFile.
Definition: text_file.h:43
String file_path_
File path to the file that is encapsulated by the TextFile.
Definition: text_file.h:42