BARE2D
BARE2D::Filesystem Class Reference

#include <Filesystem.hpp>

Static Public Member Functions

static std::vector< std::string > getDirectoriesIn (std::string path)
 Gets all the names of directories at the given path. More...
 
static std::vector< std::string > getFilesIn (std::string path)
 Gets all the names of files at the given path. More...
 
static std::string getWorkingDirectory ()
 

Detailed Description

Definition at line 9 of file Filesystem.hpp.

Member Function Documentation

◆ getDirectoriesIn()

std::vector< std::string > BARE2D::Filesystem::getDirectoriesIn ( std::string  path)
static

Gets all the names of directories at the given path.

Parameters
pathThe path to check
Returns
A vector of string names of directories

Definition at line 7 of file Filesystem.cpp.

◆ getFilesIn()

std::vector< std::string > BARE2D::Filesystem::getFilesIn ( std::string  path)
static

Gets all the names of files at the given path.

Parameters
pathThe path to check
Returns
A vector of string names of files

Definition at line 29 of file Filesystem.cpp.

Referenced by BARE2D::XMLDataManager::loadXML().

+ Here is the caller graph for this function:

◆ getWorkingDirectory()

std::string BARE2D::Filesystem::getWorkingDirectory ( )
static
Returns
The path to the program's working directory.

Definition at line 51 of file Filesystem.cpp.


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