#include <File.h>
Public Member Functions | |
File (string name) | |
~File () | |
bool | allWords (vector< string > &allWordsInFile, bool quotes=true) |
string | getObjectName () const |
Method that gives the name of the class as it will be displayed by the tracer. | |
Static Public Member Functions | |
static string | getFileNameFromPath (string path) |
File::File | ( | string | name | ) | [inline] |
Constructor.
name | The file name. |
File::~File | ( | ) | [inline] |
string File::getFileNameFromPath | ( | string | path | ) | [static] |
bool File::allWords | ( | vector< string > & | allWordsInFile, | |
bool | quotes = true | |||
) |
Reads all words in the file.
[out] | allWordsInFile | Vector of string in wich the words wil be saved. |
[in] | quotes | If true (default) sentences enclosed in double quotes are stored as a unique string in the vector (without quotes). |
string File::getObjectName | ( | ) | const [inline, virtual] |
Method that gives the name of the class as it will be displayed by the tracer.
Implements MIPObject.