TCFileName.h File Reference

This file provides the definition of TC::FileName. More...

#include "TCTypes.h"
#include <string>
#include <vector>

Include dependency graph for TCFileName.h:

Go to the source code of this file.


namespace  TC
namespace  TC::FileName
 This namespace provided functions for manipulating file names or file paths.


std::string TC::FileName::GetExtension (const std::string &file_name)
std::string TC::FileName::GetName (const std::string &file_name)
std::string TC::FileName::GetPath (const std::string &file_name)
void TC::FileName::GetDirectoriesOfFileName (const std::string &file_name, std::vector< std::string > &directories)
void TC::FileName::GetDirectoriesOfPath (const std::string &path, std::vector< std::string > &directories)
std::string TC::FileName::AddFileNameAndExtension (const std::string &file_name, const std::string &extension)
std::string TC::FileName::AddFileNameAndPath (const std::string &file_name, const std::string &path)
std::string TC::FileName::AddPaths (const std::string &path1, const std::string &path2)
std::string TC::FileName::RemoveExtension (const std::string &file_name)
std::string TC::FileName::Simplify (const std::string &file)
 Simplify a file path; the path will remain relative if it was relative, or absolute if it was absolute.


const char TC::FileName::PATH_SEPERATOR
const char * TC::FileName::PATH_SEPERATOR_STRING

Detailed Description

This file provides the definition of TC::FileName.

Thomas Goessler

Definition in file TCFileName.h.

Copyright (c) Thomas Goessler 2003 - 2008