#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.
Definition at line 46 of file File.h.
| ColPack::File::File | ( | ) |
Definition at line 31 of file File.cpp.
References fileExtension, name, and path.
| ColPack::File::File | ( | string | fileName | ) |
| string ColPack::File::GetFileExtension | ( | ) | const |
GetFileExtension excluding the '.'.
Definition at line 50 of file File.cpp.
References fileExtension.
Referenced by ColPack::GraphInputOutput::ReadAdjacencyGraph(), and ColPack::BipartiteGraphInputOutput::ReadBipartiteGraph().

| string ColPack::File::GetFullName | ( | ) | const |
Definition at line 52 of file File.cpp.
References fileExtension, and name.
| string ColPack::File::GetName | ( | ) | const |
Definition at line 48 of file File.cpp.
References name.
Referenced by toFileBiC(), toFileBiPC(), toFileC(), toFileC_forColoringBasedOrdering(), toFileStatisticForBipartiteGraph(), and toFileStatisticForGraph().

| void ColPack::File::Parse | ( | string | newFileName | ) |
Definition at line 60 of file File.cpp.
References DIR_SEPARATOR, fileExtension, name, and path.
Referenced by File(), toFileBiC(), toFileBiPC(), toFileC(), toFileC_forColoringBasedOrdering(), toFileStatisticForBipartiteGraph(), and toFileStatisticForGraph().

| void ColPack::File::SetFileExtension | ( | string | newFileExtension | ) |
Definition at line 58 of file File.cpp.
References fileExtension.
| void ColPack::File::SetName | ( | string | newName | ) |
| void ColPack::File::SetPath | ( | string | newPath | ) |
string ColPack::File::fileExtension [private] |
Definition at line 52 of file File.h.
Referenced by File(), GetFileExtension(), GetFullName(), Parse(), and SetFileExtension().
string ColPack::File::name [private] |
1.7.1