ColPack
ColPack::File Class Reference

class File in group4. More...

#include <File.h>

List of all members.

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

Detailed Description

class File in group4.

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.


Constructor & Destructor Documentation

Definition at line 31 of file File.cpp.

ColPack::File::File ( string  fileName)

Definition at line 38 of file File.cpp.


Member Function Documentation

GetFileExtension excluding the '.'.

Definition at line 50 of file File.cpp.

Referenced by ColPack::GraphInputOutput::ReadAdjacencyGraph(), and ColPack::BipartiteGraphInputOutput::ReadBipartiteGraph().

Here is the caller graph for this function:

string ColPack::File::GetFullName ( ) const

Definition at line 52 of file File.cpp.

string ColPack::File::GetName ( ) const

Definition at line 48 of file File.cpp.

Referenced by toFileBiC(), toFileBiPC(), toFileC(), toFileC_forColoringBasedOrdering(), toFileStatisticForBipartiteGraph(), and toFileStatisticForGraph().

Here is the caller graph for this function:

string ColPack::File::GetPath ( ) const

Definition at line 46 of file File.cpp.

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().

Here is the caller graph for this function:

void ColPack::File::SetFileExtension ( string  newFileExtension)

Definition at line 58 of file File.cpp.

void ColPack::File::SetName ( string  newName)

Definition at line 56 of file File.cpp.

void ColPack::File::SetPath ( string  newPath)

Definition at line 54 of file File.cpp.


Member Data Documentation

string ColPack::File::fileExtension [private]

Definition at line 52 of file File.h.

string ColPack::File::name [private]

Definition at line 51 of file File.h.

string ColPack::File::path [private]

Definition at line 50 of file File.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines