--------------------------------- Entry::c-tor Entry constructor sets up the parent and path members
| 26 | // Entry constructor sets up the parent and path members |
| 27 | // |
| 28 | Entry::Entry(std::string name, Directory* pParent) |
| 29 | : m_Filename(name) |
| 30 | , m_Parent(pParent) |
| 31 | { |
| 32 | if (m_Parent == nullptr) |
| 33 | { |
| 34 | m_Path = FileUtil::ExtractPath(m_Filename); |
| 35 | if (!FileUtil::IsAbsolutePath(m_Path)) |
| 36 | { |
| 37 | m_Path = FileUtil::GetAbsolutePath(m_Path); |
| 38 | } |
| 39 | |
| 40 | m_Filename = FileUtil::ExtractName(m_Filename); |
| 41 | } |
| 42 | else |
| 43 | { |
| 44 | m_Path = "/"; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | //--------------------------------- |
| 49 | // Entry::d-tor |
nothing calls this directly
no outgoing calls
no test coverage detected