FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
fife_boost_filesystem.cpp File Reference
#include <string>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/version.hpp>
#include "fife_boost_filesystem.h"
+ Include dependency graph for fife_boost_filesystem.cpp:

Go to the source code of this file.

Namespaces

 FIFE
 

Macros

#define BOOST_MAJOR_VERSION   BOOST_VERSION / 100000
 
#define BOOST_MINOR_VERSION   BOOST_VERSION / 100 % 1000
 

Functions

bool FIFE::HasParentPath (const bfs::path &path)
 Helper function to determine if a path object has a parent path. More...
 
bfs::path FIFE::GetParentPath (const bfs::path &path)
 Helper function to retrieve a parent path object from a path object. More...
 
std::string FIFE::GetFilenameFromPath (const bfs::path &path)
 Helper function to retrieve the filename from a boost filesystem path filename is just the name of the file and any extension without a path. More...
 
std::string FIFE::GetFilenameFromDirectoryIterator (const bfs::directory_iterator &iter)
 Helper function to retrieve a filename string from a directory iterator. More...
 
std::string FIFE::GetPathIteratorAsString (const bfs::path::iterator &pathIter)
 Helper function to retrieve the path iterator in a string representation. More...
 
bfs::path FIFE::GetAbsolutePath (const std::string &path)
 Helper function to retrieve an absolute path from a given relative path. More...
 
bfs::path FIFE::GetAbsolutePath (const bfs::path &path)
 Helper function to retrieve an absolute path from a given relative path. More...
 
bool FIFE::HasExtension (const std::string &path)
 Helper function to check if a filename has an extension. More...
 
bool FIFE::HasExtension (const bfs::path &path)
 Helper function to check if a filename has an extension. More...
 
std::string FIFE::GetExtension (const std::string &path)
 Helper function to retrieve the extension. More...
 
std::string FIFE::GetExtension (const bfs::path &path)
 Helper function to retrieve the extension. More...
 
std::string FIFE::GetStem (const std::string &path)
 Helper function to retrieve the filename minus any extension. More...
 
std::string FIFE::GetStem (const bfs::path &path)
 Helper function to retrieve the filename minus any extension. More...
 

Macro Definition Documentation

◆ BOOST_MAJOR_VERSION

#define BOOST_MAJOR_VERSION   BOOST_VERSION / 100000

Definition at line 41 of file fife_boost_filesystem.cpp.

◆ BOOST_MINOR_VERSION

#define BOOST_MINOR_VERSION   BOOST_VERSION / 100 % 1000

Definition at line 42 of file fife_boost_filesystem.cpp.