Overload  1.1
Game engine with editor
Public Types | Public Member Functions | Static Public Member Functions | List of all members
OvTools::Utils::PathParser Class Reference

#include <PathParser.h>

Public Types

enum  EFileType {
  EFileType::UNKNOWN, EFileType::MODEL, EFileType::TEXTURE, EFileType::SHADER,
  EFileType::MATERIAL, EFileType::SOUND, EFileType::SCENE, EFileType::SCRIPT,
  EFileType::FONT
}
 

Public Member Functions

 PathParser ()=delete
 

Static Public Member Functions

static std::string MakeWindowsStyle (const std::string &p_path)
 
static std::string MakeNonWindowsStyle (const std::string &p_path)
 
static std::string GetContainingFolder (const std::string &p_path)
 
static std::string GetElementName (const std::string &p_path)
 
static std::string GetExtension (const std::string &p_path)
 
static std::string FileTypeToString (EFileType p_fileType)
 
static EFileType GetFileType (const std::string &p_path)
 

Detailed Description

Provide some tools to get information about a given path

Member Enumeration Documentation

◆ EFileType

Enumerator
UNKNOWN 
MODEL 
TEXTURE 
SHADER 
MATERIAL 
SOUND 
SCENE 
SCRIPT 
FONT 

Constructor & Destructor Documentation

◆ PathParser()

OvTools::Utils::PathParser::PathParser ( )
delete

Disabled constructor

Member Function Documentation

◆ FileTypeToString()

std::string OvTools::Utils::PathParser::FileTypeToString ( EFileType  p_fileType)
static

Convert the EFileType value to a string

Parameters
p_fileType

◆ GetContainingFolder()

std::string OvTools::Utils::PathParser::GetContainingFolder ( const std::string &  p_path)
static

Returns the containing folder of the file or folder identified by the given path

Parameters
p_path

◆ GetElementName()

std::string OvTools::Utils::PathParser::GetElementName ( const std::string &  p_path)
static

Returns the name of the file or folder identified by the given path

Parameters
p_path

◆ GetExtension()

std::string OvTools::Utils::PathParser::GetExtension ( const std::string &  p_path)
static

Returns the extension of the file or folder identified by the given path

Parameters
p_path

◆ GetFileType()

OvTools::Utils::PathParser::EFileType OvTools::Utils::PathParser::GetFileType ( const std::string &  p_path)
static

Returns the file type of the file identified by the given path

Parameters
p_path

◆ MakeNonWindowsStyle()

std::string OvTools::Utils::PathParser::MakeNonWindowsStyle ( const std::string &  p_path)
static

Returns the non-windows style version of the given path ('\' replaced by '/')

Parameters
p_path

◆ MakeWindowsStyle()

std::string OvTools::Utils::PathParser::MakeWindowsStyle ( const std::string &  p_path)
static

Returns the windows style version of the given path ('/' replaced by '\')

Parameters
p_path@project: Overload
Author
: Overload Tech. @restrictions: This software may not be resold, redistributed or otherwise conveyed to a third party.

The documentation for this class was generated from the following files: