pnmimagetypes: unexpose PNMFileType* classes

They are not exposed to Python, and I cannot think of a good reason to use these classes directly in C++ code.

Call init_libpnmimagetypes() to register these classes with the PNMFileTypeRegistry instead.
This commit is contained in:
rdb 2020-01-21 15:36:48 +01:00
parent 876cb60220
commit 68a4031b22
12 changed files with 12 additions and 13 deletions

View File

@ -25,7 +25,7 @@
/** /**
* For reading and writing Windows BMP files. * For reading and writing Windows BMP files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeBMP : public PNMFileType { class PNMFileTypeBMP : public PNMFileType {
public: public:
PNMFileTypeBMP(); PNMFileTypeBMP();

View File

@ -36,7 +36,7 @@ class ImfStdIstream;
/** /**
* For reading and writing EXR floating-point or integer files. * For reading and writing EXR floating-point or integer files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeEXR : public PNMFileType { class PNMFileTypeEXR : public PNMFileType {
public: public:
PNMFileTypeEXR(); PNMFileTypeEXR();

View File

@ -25,7 +25,7 @@
/** /**
* For reading and writing headerless R,G,B files. * For reading and writing headerless R,G,B files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeIMG : public PNMFileType { class PNMFileTypeIMG : public PNMFileType {
public: public:
PNMFileTypeIMG(); PNMFileTypeIMG();

View File

@ -55,7 +55,7 @@ extern "C" {
/** /**
* For reading and writing Jpeg files. * For reading and writing Jpeg files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeJPG : public PNMFileType { class PNMFileTypeJPG : public PNMFileType {
public: public:
PNMFileTypeJPG(); PNMFileTypeJPG();

View File

@ -28,7 +28,7 @@
/** /**
* For reading and writing PNG files. * For reading and writing PNG files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePNG : public PNMFileType { class PNMFileTypePNG : public PNMFileType {
public: public:
PNMFileTypePNG(); PNMFileTypePNG();

View File

@ -25,7 +25,7 @@
/** /**
* For reading and writing basic PNM files--*.pbm, *.ppm, *.pnm. * For reading and writing basic PNM files--*.pbm, *.ppm, *.pnm.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePNM : public PNMFileType { class PNMFileTypePNM : public PNMFileType {
public: public:
PNMFileTypePNM(); PNMFileTypePNM();

View File

@ -25,7 +25,7 @@
* For reading and writing PFM files using the basic PNMImage interface, as if * For reading and writing PFM files using the basic PNMImage interface, as if
* they were basic RGB files. * they were basic RGB files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypePfm : public PNMFileType { class PNMFileTypePfm : public PNMFileType {
public: public:
PNMFileTypePfm(); PNMFileTypePfm();

View File

@ -25,7 +25,7 @@
/** /**
* For reading and writing SGI RGB files. * For reading and writing SGI RGB files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeSGI : public PNMFileType { class PNMFileTypeSGI : public PNMFileType {
public: public:
PNMFileTypeSGI(); PNMFileTypeSGI();

View File

@ -25,7 +25,7 @@
/** /**
* For reading and SoftImage native image files. * For reading and SoftImage native image files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeSoftImage : public PNMFileType { class PNMFileTypeSoftImage : public PNMFileType {
public: public:
PNMFileTypeSoftImage(); PNMFileTypeSoftImage();

View File

@ -27,7 +27,7 @@
* when compiling without support for more specific libraries that are more * when compiling without support for more specific libraries that are more
* full-featured, such as libpng or libjpeg. * full-featured, such as libpng or libjpeg.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeStbImage : public PNMFileType { class PNMFileTypeStbImage : public PNMFileType {
public: public:
PNMFileTypeStbImage(); PNMFileTypeStbImage();

View File

@ -26,11 +26,10 @@
struct ImageHeader; struct ImageHeader;
/** /**
* For reading and writing Targa image files. * For reading and writing Targa image files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeTGA : public PNMFileType { class PNMFileTypeTGA : public PNMFileType {
public: public:
PNMFileTypeTGA(); PNMFileTypeTGA();

View File

@ -30,7 +30,7 @@
/** /**
* For reading and writing TIFF files. * For reading and writing TIFF files.
*/ */
class EXPCL_PANDA_PNMIMAGETYPES PNMFileTypeTIFF : public PNMFileType { class PNMFileTypeTIFF : public PNMFileType {
public: public:
PNMFileTypeTIFF(); PNMFileTypeTIFF();