File Class Reference
[File]

a simple class to manage files More...

#include <File.h>

Inheritance diagram for File:

MIPObject

List of all members.

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)


Detailed Description

a simple class to manage files

Author:
Antonio Franchi antonio.franchi@tuebingen.mpg.de

Constructor & Destructor Documentation

File::File ( string  name  )  [inline]

Constructor.

Parameters:
name The file name.

File::~File (  )  [inline]


Member Function Documentation

string File::getFileNameFromPath ( string  path  )  [static]

bool File::allWords ( vector< string > &  allWordsInFile,
bool  quotes = true 
)

Reads all words in the file.

Parameters:
[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).
Note:
The vector allWordsInFile will be cleared befor processing.

string File::getObjectName (  )  const [inline, virtual]

Method that gives the name of the class as it will be displayed by the tracer.

Returns:
a string, which is the name of the current class
Note:
pure virtual, has to be redefined for each child class

Implements MIPObject.


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:09 2017 for MIP by  doxygen 1.5.6