Logo Search packages:      
Sourcecode: r-cran-genabel version File versions  Download package

AbstractMatrix.cpp

#include "AbstractMatrix.h"

set<string> AbstractMatrix::fileNamesOpenForWriting;

void AbstractMatrix::checkOpenForWriting(const string fileName){
    deepDbg << "checkOpenForWriting("<< fileName << ")" << endl;
    if (AbstractMatrix::fileNamesOpenForWriting.find(fileName) != fileNamesOpenForWriting.end()) {
        errorLog << "File " << fileName << " is already opened." <<  endl;
        throw 1;
    } else {
        AbstractMatrix::fileNamesOpenForWriting.insert(fileName);
    }
}
void AbstractMatrix::closeForWriting(const string fileName){
    fmDbg << "closeForWriting("<< fileName << ")" << endl;
    AbstractMatrix::fileNamesOpenForWriting.erase(fileName);
}




Generated by  Doxygen 1.6.0   Back to index