21 #include <openbabel/babelconfig.h> 31 #define NOTREADABLE 0x01 32 #define READONEONLY 0x02 33 #define READBINARY 0x04 34 #define ZEROATOMSOK 0x08 35 #define NOTWRITABLE 0x10 36 #define WRITEONEONLY 0x20 37 #define WRITEBINARY 0x40 39 #define DEPICTION2D 0x100 40 #define DEFAULTFORMAT 0x4000 54 const char*
TypeID(){
return "formats"; }
62 { std::cerr <<
"HIER" << std::endl;
63 std::cerr <<
"Not a valid input format";
return false;}
71 { std::cerr <<
"Not a valid input format";
return false;}
80 { std::cerr <<
"Not a valid output format";
return false;}
88 { std::cerr <<
"Not a valid output format";
return false;}
95 virtual const char* Description()=0;
100 virtual const char* TargetClassDescription();
106 virtual const std::type_info& GetType();
119 virtual unsigned int Flags() {
return 0;};
141 int RegisterFormat(
const char* ID,
const char* MIME = NULL);
147 virtual bool Display(std::string& txt,
const char* param,
const char* ID=NULL);
149 static OBFormat* FormatFromMIME(
const char* MIME);
std::map< const char *, OBPlugin *, CharPtrLess > PluginMapType
Definition: plugin.h:59
Base class for all types of dynamic classes discovered at runtime.
Definition: plugin.h:52
Class to convert from one format to another.
Definition: obconversion.h:59
#define MAKE_PLUGIN(BaseClass)
Definition: plugin.h:195
Simplify 'plugin' classes to be discovered and/or loaded at runtime.
Base Class.
Definition: base.h:239
Global namespace for all Open Babel code.
Definition: alias.h:22