IFile.h 502 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <string>

namespace fs
{
    class IFile
    {
    public:
        virtual ~IFile() = default;
        /// Returns the filename, including extension
        virtual const std::string& name() const = 0;
        /// Returns the path containing the file
        virtual const std::string& path() const = 0;
        /// Returns the entire path, plus filename
        virtual const std::string& fullPath() const = 0;
        virtual const std::string& extension() const = 0;
    };
}