Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
projectlocator.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
26
#include "
core/types.h
"
27
#include "
util/string.h
"
28
29
//------------------------------------------------------------------------------
30
namespace
IO
31
{
32
class
ProjectLocator
33
{
34
public
:
36
static
const
char
*
ProjectInfoFileName
;
37
39
static
Util::String
GetProjectRoot
();
41
static
Util::String
GetToolkitRoot
();
43
static
Util::String
FindProjectRoot
(
const
Util::String
& startDir);
44
};
45
46
}
// namespace IO
47
//------------------------------------------------------------------------------
IO::ProjectLocator
Resolves the project root and the toolkit (nebula root) directory.
Definition
projectlocator.h:33
IO::ProjectLocator::GetProjectRoot
static Util::String GetProjectRoot()
resolve the project root, empty string if it cannot be found
Definition
projectlocator.cc:47
IO::ProjectLocator::GetToolkitRoot
static Util::String GetToolkitRoot()
resolve the toolkit (nebula root) directory, empty if not found
Definition
projectlocator.cc:80
IO::ProjectLocator::FindProjectRoot
static Util::String FindProjectRoot(const Util::String &startDir)
walk up from startDir looking for the project info file
Definition
projectlocator.cc:20
IO::ProjectLocator::ProjectInfoFileName
static const char * ProjectInfoFileName
name of the project info file, which is always in the project root
Definition
projectlocator.h:36
Util::String
Nebula's universal string class.
Definition
string.h:50
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
string.h
types.h
code
foundation
io
projectlocator.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.