OdbDesignLib
OdbDesign ODB++ Parsing Library
 
Loading...
Searching...
No Matches
OdbFile.cpp
1#include "OdbFile.h"
2#include "OdbFile.h"
3#include "OdbFile.h"
4
5namespace Odb::Lib::FileModel
6{
7
8 const std::filesystem::path &OdbFile::GetPath() const
9 {
10 return m_path;
11 }
12
13 const std::filesystem::path& OdbFile::GetDirectory() const
14 {
15 return m_directory;
16 }
17
18 const std::string& OdbFile::GetFilename() const
19 {
20 return m_filename;
21 }
22
23 bool OdbFile::Parse(std::filesystem::path path)
24 {
25 m_directory = path;
26 if (!std::filesystem::exists(m_directory)) return false;
27
28 return true;
29 }
30}