// 
// This file is part of MolMeccano, a cross-platform C++ chemical library.
//
// Copyright (C) 2001-2007 Alexey Nikitin
//
#ifndef FILE_TEXT_OUTPUT_H
#define FILE_TEXT_OUTPUT_H

#ifndef TEXT_OUTPUT_H
#include "Text_output.h"
#endif

#ifndef FILE_PTR_H
#include "File_ptr.h"
#endif

namespace MM
{

class File_text_output : public Text_output
{
public:
    explicit File_text_output (const Text & filename, const Text & mode = "w");
//    explicit File_text_output();//fix

    virtual Text_output & text( const Text & );
    virtual Text_output & line( const Text & );
    virtual Text_output & flush();

private:
    File_ptr        file_ptr_;
};

}//MM

#endif //FILE_TEXT_OUTPUT_H

