Sirikata
Namespaces | Enumerations | Functions | Variables
libcore/include/sirikata/core/util/Paths.hpp File Reference
#include <sirikata/core/util/Platform.hpp>
Include dependency graph for Paths.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Sirikata
 

Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO.


namespace  Sirikata::Path
 

Utilities for getting information about paths, such as the executable file, executable directory, current directory, etc.


namespace  Sirikata::Path::Placeholders
 

Path placeholders are strings that can be automatically substituted with standard locations, e.g.


Enumerations

enum  Sirikata::Path::Key {
  Sirikata::Path::PATH_START = 0, Sirikata::Path::FILE_EXE, Sirikata::Path::DIR_EXE, Sirikata::Path::DIR_EXE_BUNDLE,
  Sirikata::Path::DIR_CURRENT, Sirikata::Path::DIR_USER, Sirikata::Path::DIR_USER_HIDDEN, Sirikata::Path::DIR_TEMP,
  Sirikata::Path::DIR_SYSTEM_CONFIG, Sirikata::Path::RESOURCE, Sirikata::Path::PATH_END
}

Functions

SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::Placeholders::RESOURCE (const String &intree, const String &resource)
SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::Get (Key key)
SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::Get (Key key, const String &relative_path)
SIRIKATA_FUNCTION_EXPORT bool Sirikata::Path::Set (Key key, const String &path)
SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::Get (Key key, const String &relative_path, const String &alternate_base)
SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::SubstitutePlaceholders (const String &path)
 Substitute full values for placeholders in the given path.
SIRIKATA_FUNCTION_EXPORT String Sirikata::Path::GetTempFilename (const String &prefix)
 Get temporary filename, i.e.

Variables

SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_EXE
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_EXE_BUNDLE
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_CURRENT
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_USER
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_USER_HIDDEN
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_TEMP
SIRIKATA_EXPORT const String Sirikata::Path::Placeholders::DIR_SYSTEM_CONFIG