mirror of https://github.com/CGAL/cgal
Re-introduce and deprecate old BGL IO functions
This commit is contained in:
parent
4f2bb738a2
commit
c451488876
|
|
@ -266,6 +266,32 @@ bool read_OFF(const std::string& fname, Graph& g,
|
||||||
return read_OFF(fname, g, parameters::all_default());
|
return read_OFF(fname, g, parameters::all_default());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::read_OFF()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool read_off(std::ostream& os, Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return read_OFF(os, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::read_OFF()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool read_off(const char* fname, Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return read_OFF(fname, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Write
|
// Write
|
||||||
|
|
@ -467,6 +493,32 @@ bool write_OFF(const std::string& fname, const Graph& g,
|
||||||
return write_OFF(fname.c_str(), g, parameters::all_default());
|
return write_OFF(fname.c_str(), g, parameters::all_default());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::write_OFF()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool write_off(std::ostream& os, const Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return write_OFF(os, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::write_OFF()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool write_off(const char* fname, const Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return write_OFF(fname, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_BGL_IO_OFF_H
|
#endif // CGAL_BGL_IO_OFF_H
|
||||||
|
|
|
||||||
|
|
@ -538,6 +538,21 @@ bool write_VTP(const std::string& fname, const Graph& g, const CGAL_BGL_NP_CLASS
|
||||||
template<typename Graph>
|
template<typename Graph>
|
||||||
bool write_VTP(const std::string& fname, const Graph& g) { return write_VTP(fname, g, parameters::all_default()); }
|
bool write_VTP(const std::string& fname, const Graph& g) { return write_VTP(fname, g, parameters::all_default()); }
|
||||||
|
|
||||||
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::write_VTP()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool CGAL::write_vtp(std::ostream& os, const Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return write_VTP(os, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
#endif // defined(CGAL_USE_VTK) || defined(DOXYGEN_RUNNING)
|
#endif // defined(CGAL_USE_VTK) || defined(DOXYGEN_RUNNING)
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,21 @@ bool write_WRL(const char* fname, const Graph& g) { return write_WRL(fname, g, p
|
||||||
template <typename Graph>
|
template <typename Graph>
|
||||||
bool write_WRL(const std::string& fname, const Graph& g) { return write_WRL(fname, g, parameters::all_default()); }
|
bool write_WRL(const std::string& fname, const Graph& g) { return write_WRL(fname, g, parameters::all_default()); }
|
||||||
|
|
||||||
|
#ifndef CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\ingroup PkgBGLIOFctDeprecated
|
||||||
|
|
||||||
|
\deprecated This function is deprecated since \cgal 5.2, `CGAL::write_WRL()` should be used instead.
|
||||||
|
*/
|
||||||
|
template <typename Graph, typename CGAL_BGL_NP_TEMPLATE_PARAMETERS>
|
||||||
|
CGAL_DEPRECATED bool write_wrl(std::ostream& os, const Graph& g, const CGAL_BGL_NP_CLASS& np)
|
||||||
|
{
|
||||||
|
return write_WRL(os, g, np);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_NO_DEPRECATED_CODE
|
||||||
|
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
#endif // CGAL_BGL_IO_WRL_H
|
#endif // CGAL_BGL_IO_WRL_H
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue