// ====================================================================== // // Copyright (c) 2001 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: CGAL-2.3-I-62 $ // release_date : $CGAL_Date: 2001/05/11 $ // // file : include/CGAL/IO/Arr_file_scanner.h // package : Arrangement (1.82) // maintainer : Eyal Flato // author(s) : Eti Ezra // coordinator : Tel-Aviv University (Dan Halperin ) // // ====================================================================== #ifndef CGAL_IO_ARR_FILE_SCANNER_H #define CGAL_IO_ARR_FILE_SCANNER_H 1 #ifndef CGAL_BASIC_H #include #endif #ifndef CGAL_KNOWN_BIT_SIZE_INTEGERS_H #include #endif #ifndef CGAL_PROTECT_CSTDDEF #include #define CGAL_PROTECT_CSTDDEF #endif #ifndef CGAL_IO_BINARY_FILE_IO_H #include #endif // CGAL_IO_BINARY_FILE_IO_H //#ifndef CGAL_IO_FILE_HEADER_PM_H //#include //#endif // CGAL_IO_FILE_HEADER_PM_H #ifndef CGAL_IO_PM_FILE_SCANNER_H #include #endif // CGAL_IO_PM_FILE_SCANNER_H #ifndef CGAL_PROTECT_IOSTREAM #include #define CGAL_PROTECT_IOSTREAM #endif CGAL_BEGIN_NAMESPACE template class Arr_file_scanner : public Pm_file_scanner { public: typedef typename Arrangement::Curve_node Curve_node; typedef typename Arrangement::Subcurve_node Subcurve_node; typedef typename Arrangement::Edge_node Edge_node; typedef typename Arrangement::Traits Traits; typedef typename Traits::Point Point; typedef typename Traits::X_curve X_curve; typedef typename Traits::Curve Curve; Arr_file_scanner(std::istream& in) : Pm_file_scanner(in) {} Arr_file_scanner(std::istream& in, const File_header& h) : Pm_file_scanner(in, h) {} void scan_Curve_node(Curve_node* cn){ skip_comment(); // providing default reading function. Curve curve; in() >> curve; cn->set_curve(curve); } void scan_Subcurve_node(Subcurve_node* scn){ skip_comment(); // providing default reading function. Curve curve; in() >> curve; scn->set_curve(curve); } void scan_Edge_node(Edge_node* en){ skip_comment(); // providing default reading function. Curve curve; in() >> curve; en->set_curve(curve); } }; CGAL_END_NAMESPACE #endif // CGAL_IO_FILE_SCANNER_PM_H // // EOF //