Ignore:
Timestamp:
08/02/10 14:17:07 (14 years ago)
Author:
Malte Marquarding
Message:

Check for existing file here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/FillerWrapper.h

    r1811 r1813  
    1616#include <casa/Exceptions.h>
    1717#include <casa/Utilities/CountedPtr.h>
     18#include <casa/OS/File.h>
     19
    1820#include <string>
    1921
     
    3840//  void open(const std::string& filename, casa::Record rec) {
    3941  void open(const std::string& filename) {
     42    casa::File file(filename);
     43    if ( !file.exists() ) {
     44      throw(AipsError("File does not exist"));
     45    }
    4046    filler_ = new PKSFiller(stable_);
    4147//    if (filler_->open(filename, rec)) {
Note: See TracChangeset for help on using the changeset viewer.