MCPcopy Create free account
hub / github.com/Illation/ETEngine / Entry

Method Entry

Engine/source/EtCore/FileSystem/Entry.cpp:28–46  ·  view source on GitHub ↗

--------------------------------- Entry::c-tor Entry constructor sets up the parent and path members

Source from the content-addressed store, hash-verified

26// Entry constructor sets up the parent and path members
27//
28Entry::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected