GEOSX
Public Member Functions | Static Public Member Functions | List of all members
geos::Path Class Reference

Class describing a file Path. More...

#include <Path.hpp>

Inheritance diagram for geos::Path:
Inheritance graph
[legend]

Public Member Functions

 Path ()
 Default constructor.
 
 Path (Path const &rhs)
 Copy constructor. More...
 
 Path (Path &&rhs) noexcept
 Move constructor. More...
 
Pathoperator= (Path const &rhs)
 Copy assignment. More...
 
Pathoperator= (Path &&rhs) noexcept
 Move assignment. More...
 
 ~Path ()
 Destructor.
 
std::string filename () const
 
std::string extension () const
 

Static Public Member Functions

static void setPathPrefix (std::string_view p)
 Set the path prefix of the file. More...
 
static std::string_view getPathPrefix ()
 Get the path prefix of the file. More...
 

Detailed Description

Class describing a file Path.

Purpose of this class is to be used as a type to specify file path within the XML input files, through the operator>>.

Definition at line 31 of file Path.hpp.

Constructor & Destructor Documentation

◆ Path() [1/2]

geos::Path::Path ( Path const &  rhs)
inline

Copy constructor.

Parameters
rhsPath to be copied.

Definition at line 47 of file Path.hpp.

◆ Path() [2/2]

geos::Path::Path ( Path &&  rhs)
inlinenoexcept

Move constructor.

Parameters
rhsPath to be moved.

Definition at line 54 of file Path.hpp.

Member Function Documentation

◆ extension()

std::string geos::Path::extension ( ) const
inline
Returns
the extension of the filename

Definition at line 117 of file Path.hpp.

◆ filename()

std::string geos::Path::filename ( ) const
inline
Returns
the filename portion of the path

Definition at line 108 of file Path.hpp.

◆ getPathPrefix()

static std::string_view geos::Path::getPathPrefix ( )
inlinestatic

Get the path prefix of the file.

The path prefix is usually a folder path in which the XML file is located

Returns
the path prefix

Definition at line 100 of file Path.hpp.

◆ operator=() [1/2]

Path& geos::Path::operator= ( Path &&  rhs)
inlinenoexcept

Move assignment.

Parameters
rhsPath to be moved.
Returns
*this

Definition at line 73 of file Path.hpp.

◆ operator=() [2/2]

Path& geos::Path::operator= ( Path const &  rhs)
inline

Copy assignment.

Parameters
rhsPath to be copied.
Returns
*this

Definition at line 62 of file Path.hpp.

◆ setPathPrefix()

static void geos::Path::setPathPrefix ( std::string_view  p)
inlinestatic

Set the path prefix of the file.

The path prefix is usually a folder path in which the XML file is located

Parameters
pPath prefix to be set.

Definition at line 90 of file Path.hpp.


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