Field3D
Field3DFile.h File Reference

Contains the Field3DFile classes. More...

#include <list>
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>
#include "EmptyField.h"
#include "Field.h"
#include "Field3DFileHDF5.h"
#include "FieldMetadata.h"
#include "ClassFactory.h"
#include "OgawaFwd.h"
#include "ns.h"

Go to the source code of this file.

Classes

class  Field3DFileBase
 
struct  Field3DFileBase::LayerInfo
 
class  Field3DInputFile
 Provides reading of .f3d (internally, hdf5 or Ogawa) files. More...
 
class  Field3DOutputFile
 Provides writing of .f3d (internally, hdf5 or Ogawa) files. More...
 
class  File::Layer
 
class  File::Partition
 

Namespaces

 File
 Namespace for file I/O specifics.
 

Functions

bool fileExists (const std::string &filename)
 checks to see if a file/directory exists or not More...
 

Detailed Description

Contains the Field3DFile classes.

OSS sanitized

Definition in file Field3DFile.h.

Function Documentation

◆ fileExists()

bool fileExists ( const std::string &  filename)

checks to see if a file/directory exists or not

Parameters
[in]filenamethe file/directory to check
Return values
trueif it exists
falseif it does not exist

Definition at line 1328 of file Field3DFile.cpp.

1329 {
1330 #ifdef WIN32
1331  struct __stat64 statbuf;
1332  return (_stat64(filename.c_str(), &statbuf) != -1);
1333 #else
1334  struct stat statbuf;
1335  return (stat(filename.c_str(), &statbuf) != -1);
1336 #endif
1337 }

Referenced by Field3DOutputFile::create(), and FileSequence::FileSequence().