Back to index

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

#include <MPIAccessTest.hxx>

Collaboration diagram for MPIAccessTest_TmpFilesRemover:
Collaboration graph

List of all members.

Public Member Functions

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

Private Attributes

std::set< std::string > myTmpFiles

Detailed Description

Definition at line 78 of file MPIAccessTest.hxx.

Constructor & Destructor Documentation

Definition at line 81 of file MPIAccessTest.hxx.


Tool to remove temporary files.

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

Definition at line 34 of file MPIAccessTest.cxx.

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

Member Function Documentation

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

Definition at line 45 of file MPIAccessTest.cxx.

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

Member Data Documentation

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

Definition at line 86 of file MPIAccessTest.hxx.

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