Cleanup: Alembic, replace `#ifndef` guards with `#pragma once`

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2020-06-19 15:14:40 +02:00
parent 1a448c66ed
commit 697b1736ef
22 changed files with 22 additions and 110 deletions

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_ALEMBIC_H__
#define __ABC_ALEMBIC_H__
#ifdef __cplusplus
extern "C" {
#endif
@ -133,5 +131,3 @@ struct CacheReader *CacheReader_open_alembic_object(struct AbcArchiveHandle *han
#ifdef __cplusplus
}
#endif
#endif /* __ABC_ALEMBIC_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_EXPORTER_H__
#define __ABC_EXPORTER_H__
#include <Alembic/Abc/All.h>
#include <map>
#include <set>
@ -131,5 +129,3 @@ class AbcExporter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_EXPORTER_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_ARCHIVE_H__
#define __ABC_WRITER_ARCHIVE_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcCoreOgawa/All.h>
@ -54,5 +52,3 @@ class ArchiveWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_ARCHIVE_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_CAMERA_H__
#define __ABC_WRITER_CAMERA_H__
#include "abc_writer_object.h"
/* ************************************************************************** */
@ -49,5 +47,3 @@ class AbcCameraWriter : public AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_CAMERA_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_CURVES_H__
#define __ABC_WRITER_CURVES_H__
#include "abc_writer_mesh.h"
#include "abc_writer_object.h"
@ -59,5 +57,3 @@ class AbcCurveMeshWriter : public AbcGenericMeshWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_CURVES_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_HAIR_H__
#define __ABC_WRITER_HAIR_H__
#include "abc_writer_object.h"
struct Mesh;
@ -67,5 +65,3 @@ class AbcHairWriter : public AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_HAIR_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_MBALL_H__
#define __ABC_WRITER_MBALL_H__
#include "abc_writer_mesh.h"
#include "abc_writer_object.h"
@ -60,5 +58,3 @@ class AbcMBallWriter : public AbcGenericMeshWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_MBALL_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_MESH_H__
#define __ABC_WRITER_MESH_H__
#include "abc_writer_object.h"
#include "intern/abc_customdata.h"
@ -95,5 +93,3 @@ class AbcMeshWriter : public AbcGenericMeshWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_MESH_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_NURBS_H__
#define __ABC_WRITER_NURBS_H__
#include "abc_writer_object.h"
namespace blender {
@ -46,5 +44,3 @@ class AbcNurbsWriter : public AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_NURBS_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_OBJECT_H__
#define __ABC_WRITER_OBJECT_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcGeom/All.h>
@ -73,5 +71,3 @@ class AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_OBJECT_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_POINTS_H__
#define __ABC_WRITER_POINTS_H__
#include "abc_writer_object.h"
#include "intern/abc_customdata.h"
@ -53,5 +51,3 @@ class AbcPointsWriter : public AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_POINTS_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_WRITER_TRANSFORM_H__
#define __ABC_WRITER_TRANSFORM_H__
#include "abc_writer_object.h"
#include <Alembic/AbcGeom/All.h>
@ -64,5 +62,3 @@ class AbcTransformWriter : public AbcObjectWriter {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_WRITER_TRANSFORM_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_CUSTOMDATA_H__
#define __ABC_CUSTOMDATA_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcGeom/All.h>
@ -118,5 +116,3 @@ void read_custom_data(const std::string &iobject_full_name,
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_CUSTOMDATA_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_ARCHIVE_H__
#define __ABC_READER_ARCHIVE_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcCoreOgawa/All.h>
@ -57,5 +55,3 @@ class ArchiveReader {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_ARCHIVE_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_CAMERA_H__
#define __ABC_READER_CAMERA_H__
#include "abc_reader_object.h"
namespace blender {
@ -44,5 +42,3 @@ class AbcCameraReader : public AbcObjectReader {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_CAMERA_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_CURVES_H__
#define __ABC_READER_CURVES_H__
#include "abc_reader_mesh.h"
#include "abc_reader_object.h"
@ -60,5 +58,3 @@ class AbcCurveReader : public AbcObjectReader {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_CURVES_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_MESH_H__
#define __ABC_READER_MESH_H__
#include "abc_customdata.h"
#include "abc_reader_object.h"
@ -90,5 +88,3 @@ CDStreamConfig get_config(struct Mesh *mesh);
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_MESH_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_NURBS_H__
#define __ABC_READER_NURBS_H__
#include "abc_reader_object.h"
namespace blender {
@ -44,5 +42,3 @@ class AbcNurbsReader : public AbcObjectReader {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_NURBS_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_OBJECT_H__
#define __ABC_READER_OBJECT_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcGeom/All.h>
@ -173,5 +171,3 @@ Imath::M44d get_matrix(const Alembic::AbcGeom::IXformSchema &schema, const float
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_OBJECT_H__ */

View File

@ -16,14 +16,12 @@
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
* All rights reserved.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_POINTS_H__
#define __ABC_READER_POINTS_H__
#include "abc_customdata.h"
#include "abc_reader_object.h"
@ -58,5 +56,3 @@ void read_points_sample(const Alembic::AbcGeom::IPointsSchema &schema,
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_POINTS_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_READER_TRANSFORM_H__
#define __ABC_READER_TRANSFORM_H__
#include "abc_reader_object.h"
#include <Alembic/AbcGeom/All.h>
@ -46,5 +44,3 @@ class AbcEmptyReader : public AbcObjectReader {
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_READER_TRANSFORM_H__ */

View File

@ -13,14 +13,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#pragma once
/** \file
* \ingroup balembic
*/
#ifndef __ABC_UTIL_H__
#define __ABC_UTIL_H__
#include <Alembic/Abc/All.h>
#include <Alembic/AbcGeom/All.h>
@ -172,5 +170,3 @@ std::ostream &operator<<(std::ostream &os, const SimpleLogger &logger);
} // namespace alembic
} // namespace io
} // namespace blender
#endif /* __ABC_UTIL_H__ */