cgal/Packages/Polyhedron_IO/include/CGAL/IO/Writer_OFF.h

63 lines
1.9 KiB
C++

// ============================================================================
//
// Copyright (c) 1997 The CGAL Consortium
//
// This software and related documentation is part of an INTERNAL release
// of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use.
//
// ----------------------------------------------------------------------------
//
// release : $CGAL_Revision: $
// release_date : $CGAL_Date: $
//
// file : include/CGAL/IO/Writer_OFF.h
// package : Polyhedron_IO 2.11 (04 Feb 2000)
// chapter : Support Library
//
// revision : $Revision$
// revision_date : $Date$
//
// author(s) : Lutz Kettner <kettner@mpi-sb.mpg.de>
// maintainer :
// coordinator : INRIA, Sophia Antipolis
//
// STL compliant interface to write OFF.
// ============================================================================
#ifndef CGAL_IO_WRITER_OFF_H
#define CGAL_IO_WRITER_OFF_H 1
#ifndef CGAL_IO_FILE_WRITER_OFF_H
#include <CGAL/IO/File_writer_OFF.h>
#endif // CGAL_IO_FILE_WRITER_OFF_H
#ifndef CGAL_IO_GENERIC_WRITER_H
#include <CGAL/IO/Generic_writer.h>
#endif // CGAL_IO_GENERIC_WRITER_H
CGAL_BEGIN_NAMESPACE
template < class Pt >
class Writer_OFF : public Generic_writer<File_writer_OFF,Pt> {
public:
Writer_OFF( std::ostream& out,
std::size_t v,
std::size_t h,
std::size_t f,
bool verbose = false)
: Generic_writer<File_writer_OFF,Pt>(
File_writer_OFF( verbose), out, v, h, f
) {}
Writer_OFF( std::ostream& out,
std::size_t v,
std::size_t h,
std::size_t f,
const File_header_OFF& header)
: Generic_writer<File_writer_OFF,Pt>(
File_writer_OFF( header), out, v, h, f
) {}
};
CGAL_END_NAMESPACE
#endif // CGAL_IO_WRITER_OFF_H //
// EOF //