Irrlicht 3D Engine
irr::io::SNamedPath Struct Reference

Used in places where we identify objects by a filename, but don't actually work with the real filename. More...

#include <path.h>

Public Member Functions

 SNamedPath ()
 Constructor. More...
 
 SNamedPath (const path &p)
 Constructor. More...
 
const pathgetInternalName () const
 
const pathgetPath () const
 Get the path. More...
 
 operator core::stringc () const
 Implicit cast to io::path. More...
 
 operator core::stringw () const
 Implicit cast to io::path. More...
 
bool operator< (const SNamedPath &other) const
 Is smaller comparator. More...
 
void setPath (const path &p)
 Set the path. More...
 

Protected Member Functions

path PathToName (const path &p) const
 

Detailed Description

Used in places where we identify objects by a filename, but don't actually work with the real filename.

Irrlicht is internally not case-sensitive when it comes to names. Also this class is a first step towards support for correctly serializing renamed objects.

Definition at line 23 of file path.h.

Constructor & Destructor Documentation

§ SNamedPath() [1/2]

irr::io::SNamedPath::SNamedPath ( )
inline

Constructor.

Definition at line 26 of file path.h.

§ SNamedPath() [2/2]

irr::io::SNamedPath::SNamedPath ( const path p)
inline

Constructor.

Definition at line 29 of file path.h.

Member Function Documentation

§ getInternalName()

const path& irr::io::SNamedPath::getInternalName ( ) const
inline

Get the name which is used to identify the file. This string is similar to the names and filenames used before Irrlicht 1.7

Definition at line 54 of file path.h.

Referenced by irr::scene::IMeshCache::getMeshFilename().

§ getPath()

const path& irr::io::SNamedPath::getPath ( ) const
inline

Get the path.

Definition at line 47 of file path.h.

Referenced by operator core::stringc(), and operator core::stringw().

§ operator core::stringc()

irr::io::SNamedPath::operator core::stringc ( ) const
inline

Implicit cast to io::path.

Definition at line 60 of file path.h.

References getPath().

§ operator core::stringw()

irr::io::SNamedPath::operator core::stringw ( ) const
inline

Implicit cast to io::path.

Definition at line 65 of file path.h.

References getPath().

§ operator<()

bool irr::io::SNamedPath::operator< ( const SNamedPath other) const
inline

Is smaller comparator.

Definition at line 34 of file path.h.

§ PathToName()

path irr::io::SNamedPath::PathToName ( const path p) const
inlineprotected

§ setPath()

void irr::io::SNamedPath::setPath ( const path p)
inline

Set the path.

Definition at line 40 of file path.h.

References PathToName().


The documentation for this struct was generated from the following file: