ColPack
|
#include <File.h>
Public Member Functions | |
File () | |
File (string fileName) | |
void | Parse (string newFileName) |
string | GetPath () const |
string | GetName () const |
string | GetFileExtension () const |
GetFileExtension excluding the '.'. | |
string | GetFullName () const |
void | SetPath (string newPath) |
void | SetName (string newName) |
void | SetFileExtension (string newFileExtension) |
Private Attributes | |
string | path |
string | name |
string | fileExtension |
The File class is used to process file name. It should work on both Windows and *nix. A File object will take a file name, parse and separate it into 3 parts: path (name prefix), name, and file extension.
ColPack::File::File | ( | string | fileName | ) |
string ColPack::File::GetFileExtension | ( | ) | const |
GetFileExtension excluding the '.'.
Definition at line 50 of file File.cpp.
Referenced by ColPack::GraphInputOutput::ReadAdjacencyGraph(), and ColPack::BipartiteGraphInputOutput::ReadBipartiteGraph().
string ColPack::File::GetFullName | ( | ) | const |
string ColPack::File::GetName | ( | ) | const |
Definition at line 48 of file File.cpp.
Referenced by toFileBiC(), toFileBiPC(), toFileC(), toFileC_forColoringBasedOrdering(), toFileStatisticForBipartiteGraph(), and toFileStatisticForGraph().
string ColPack::File::GetPath | ( | ) | const |
void ColPack::File::Parse | ( | string | newFileName | ) |
Definition at line 60 of file File.cpp.
References DIR_SEPARATOR.
Referenced by toFileBiC(), toFileBiPC(), toFileC(), toFileC_forColoringBasedOrdering(), toFileStatisticForBipartiteGraph(), and toFileStatisticForGraph().
void ColPack::File::SetFileExtension | ( | string | newFileExtension | ) |
void ColPack::File::SetName | ( | string | newName | ) |
void ColPack::File::SetPath | ( | string | newPath | ) |
string ColPack::File::fileExtension [private] |
string ColPack::File::name [private] |
string ColPack::File::path [private] |