| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Classes | Public Member Functions | Protected Attributes
TeTempFilesRemover Class Reference
General purpose utilitary functions

Hold Temporary files references for file system remotion when appropriate or when the singleton is destroyed. More...

`#include <TeTempFilesRemover.h>`

Inheritance diagram for TeTempFilesRemover:

List of all members.

## Classes

struct | ListNode

## Public Member Functions

| TeTempFilesRemover ()
void | addFile (const std::string &fullFileName)
void | addFile (const std::string &fullFileName, FILE *filePtr)
void | removeFileName (const std::string &fullFileName)
void | removeFile (const std::string &fullFileName)
void | removeAllFiles ()
| ~TeTempFilesRemover ()

## Protected Attributes

std::list< ListNode > | filesNamesList_

## Detailed Description

Hold Temporary files references for file system remotion when appropriate or when the singleton is destroyed.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

## Constructor & Destructor Documentation

TeTempFilesRemover::TeTempFilesRemover | ( |  | ) |

TeTempFilesRemover::~TeTempFilesRemover | ( |  | ) |

## Member Function Documentation

void TeTempFilesRemover::addFile | ( | const std::string & | fullFileName | ) |

Add a file to be removed.

Parameters:

  fullFileName | Full file name.

void TeTempFilesRemover::addFile | ( | const std::string & | fullFileName,
|  | FILE * | filePtr
| ) |  |

Add a file to be removed.

Parameters:

  fullFileName | Full file name.
  filePtr | File pointer.

Note:
  The file will be closed just before its deletion.

void TeTempFilesRemover::removeAllFiles | ( |  | ) |

Remove all files reference and also from the from the file system.

Parameters:

  fullFileName | Full file name.

void TeTempFilesRemover::removeFile | ( | const std::string & | fullFileName | ) |

Remove the file reference and delete it from the file system.

Parameters:

  fullFileName | Full file name.

void TeTempFilesRemover::removeFileName | ( | const std::string & | fullFileName | ) |

Remove the file reference - The file will not be deleted from the file system.

Parameters:

  fullFileName | Full file name.

## Member Data Documentation

std::list< ListNode > TeTempFilesRemover::filesNamesList_`[protected]`

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeTempFilesRemover.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeTempFilesRemover.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines