/** \file
 *
 *  Contains the FileEncoder class declaration.
 *
 *  Copyright (c) 2007,2008,2009 MBARI
 *  MBARI Proprietary Information.  All Rights Reserved
 *
 */

#ifndef FILEENCODER_H_
#define FILEENCODER_H_

/**
 *  This is a rather abstract class that
 *  can be implemented by classes that
 *  encode a (closed) file.
 *
 *  \ingroup io
 */
class FileEncoder
{
public:

    virtual ~FileEncoder()
    {}

    virtual bool encode( const char* inFilename, const char* outFilename  = 0, const char* renameFilename = 0 ) = 0;

protected:

    FileEncoder()
    {}

private:

    // Note that the copy constructor below is private and not given a body.
    // Any attempt to call it will return a compiler error.
    FileEncoder( const FileEncoder& old ); // disallow copy constructor

};

#endif /* FILEENCODER_H_ */
