Line data Source code
1 : #include "OdbFile.h"
2 : #include "OdbFile.h"
3 : #include "OdbFile.h"
4 :
5 : namespace Odb::Lib::FileModel
6 : {
7 :
8 0 : const std::filesystem::path &OdbFile::GetPath() const
9 : {
10 0 : return m_path;
11 : }
12 :
13 0 : const std::filesystem::path& OdbFile::GetDirectory() const
14 : {
15 0 : return m_directory;
16 : }
17 :
18 0 : const std::string& OdbFile::GetFilename() const
19 : {
20 0 : return m_filename;
21 : }
22 :
23 365 : bool OdbFile::Parse(std::filesystem::path path)
24 : {
25 365 : m_directory = path;
26 365 : if (!std::filesystem::exists(m_directory)) return false;
27 :
28 365 : return true;
29 : }
30 : }
|