Line data Source code
1 : #pragma once
2 :
3 : #include <filesystem>
4 : #include "../odbdesign_export.h"
5 :
6 : namespace Odb::Lib::FileModel
7 : {
8 : class ODBDESIGN_EXPORT OdbFile
9 : {
10 : public:
11 365 : virtual ~OdbFile() = default;
12 :
13 : const std::filesystem::path& GetPath() const;
14 : const std::filesystem::path& GetDirectory() const;
15 : const std::string& GetFilename() const;
16 :
17 : virtual bool Parse(std::filesystem::path path);
18 :
19 : protected:
20 : std::filesystem::path m_path;
21 : std::filesystem::path m_directory;
22 : std::string m_filename;
23 :
24 : // abstract class
25 437 : OdbFile() = default;
26 :
27 : };
28 : }
|