DD::Image::FileRead Class Reference

Inherited by DD::Image::Read, and DD::Image::ReadGeo.

List of all members.

Static Public Member Functions

static void closeFile (const std::string &filename)

Protected Member Functions

virtual void close ()=0
 ! should be overriden to close the file
virtual const char * getFilename () const =0


Detailed Description

Interface that is implemented by objects that retain an open file handle to some file, so that Execute can make sure that all open handles on a file are closed before it is written to. Read and ReadGeo inherit from this.

Member Function Documentation

virtual const char* DD::Image::FileRead::getFilename (  )  const [protected, pure virtual]

! should be overriden to return the filename currently in use. can return NULL if not present

Referenced by closeFile().

void DD::Image::FileRead::closeFile ( const std::string &  filename  )  [static]

call close() on all FileRead objects whose filename is /filename/

References close(), getFilename(), DD::Image::Lock::lock(), and DD::Image::Lock::unlock().



©2009 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk