Back to index

salome-med  6.5.0
Public Member Functions | Private Attributes
ParaMEDMEMTest_TmpFilesRemover Class Reference

#include <ParaMEDMEMTest.hxx>

Collaboration diagram for ParaMEDMEMTest_TmpFilesRemover:
Collaboration graph

List of all members.

Public Member Functions

 ParaMEDMEMTest_TmpFilesRemover ()
 ~ParaMEDMEMTest_TmpFilesRemover ()
 Tool to remove temporary files.
bool Register (const std::string theTmpFile)

Private Attributes

std::set< std::string > myTmpFiles

Detailed Description

Definition at line 159 of file ParaMEDMEMTest.hxx.

Constructor & Destructor Documentation

Definition at line 162 of file ParaMEDMEMTest.hxx.


Tool to remove temporary files.

Allows automatique removal of temporary files in case of test failure.

Definition at line 114 of file ParaMEDMEMTest.cxx.

  std::set<std::string>::iterator it = myTmpFiles.begin();
  for (; it != myTmpFiles.end(); it++) {
    if (access((*it).data(), F_OK) == 0)
  //cout << "~ParaMEDMEMTest_TmpFilesRemover()" << endl;

Member Function Documentation

bool ParaMEDMEMTest_TmpFilesRemover::Register ( const std::string  theTmpFile)

Definition at line 125 of file ParaMEDMEMTest.cxx.

  return (myTmpFiles.insert(theTmpFile)).second;

Here is the caller graph for this function:

Member Data Documentation

std::set<std::string> ParaMEDMEMTest_TmpFilesRemover::myTmpFiles [private]

Definition at line 167 of file ParaMEDMEMTest.hxx.

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