VAPOR3 3.9.4
Classes | Namespaces | Macros
ImageWriter.h File Reference
#include <vapor/MyBase.h>
#include <string>

Go to the source code of this file.

Classes

class  VAPoR::ImageWriter
 Interface for image writers. More...
 
class  VAPoR::ImageWriterFactory
 

Namespaces

namespace  VAPoR
 

Macros

#define REGISTER_IMAGEWRITER(name)
 

Macro Definition Documentation

◆ REGISTER_IMAGEWRITER

#define REGISTER_IMAGEWRITER (   name)
Value:
class name##Factory : public ImageWriterFactory { \
public: \
name##Factory() : ImageWriterFactory(name::GetFileExtensions()) { ImageWriter::RegisterFactory(this); } \
virtual ImageWriter *Create(const std::string &path) { return new name(path); } \
}; \
static name##Factory registration_##name##Factory;

Definition at line 46 of file ImageWriter.h.