| 41 |
|
#include <string> |
| 42 |
|
#include <vector> |
| 43 |
|
#include <map> |
| 44 |
– |
#include <typeinfo> |
| 44 |
|
|
| 45 |
< |
//#include "dlhandler.h" |
| 45 |
> |
#include "dlhandler.hpp" |
| 46 |
|
|
| 47 |
|
// These macros are used in DLL builds. If they have not |
| 48 |
< |
// been set in babelconfig.h, define them as nothing. |
| 48 |
> |
// been set in config.h, define them as nothing. |
| 49 |
|
#ifndef OBCONV |
| 50 |
|
#define OBCONV |
| 51 |
|
#endif |
| 88 |
|
/// Reads a single object. |
| 89 |
|
/// Does not make a new object on the heap; |
| 90 |
|
/// can be used with a pointer to an chem object on the heap or the stack. |
| 91 |
< |
virtual bool ReadMolecule(OBBase* pOb, OBConversion* pConv) |
| 91 |
> |
virtual bool ReadMolecule(OBBase* /*pOb*/, OBConversion* /*pConv*/) |
| 92 |
|
{ std::cerr << "Not a valid input format"; return false;} |
| 93 |
|
|
| 94 |
|
/// @brief The "Convert" interface Read function. |
| 96 |
|
/// Possibly reads multiple new objects on the heap and subjects them |
| 97 |
|
/// to its DoTransformations() function, which may delete them again. |
| 98 |
|
/// Sends result to pConv->AddChemObject() |
| 99 |
< |
virtual bool ReadChemObject(OBConversion* pConv) |
| 99 |
> |
virtual bool ReadChemObject(OBConversion* /*pConv*/) |
| 100 |
|
{ std::cerr << "Not a valid input format"; return false;} |
| 101 |
|
|
| 102 |
|
/// @brief The "API" interface Write function. |
| 105 |
|
/// Does not delete the object; |
| 106 |
|
/// can be used with a pointer to an chem object on the heap or the stack. |
| 107 |
|
/// Returns false on error. |
| 108 |
< |
virtual bool WriteMolecule(OBBase* pOb, OBConversion* pConv) |
| 108 |
> |
virtual bool WriteMolecule(OBBase* /*pOb*/, OBConversion* /*pConv*/) |
| 109 |
|
{ std::cerr << "Not a valid output format"; return false;} |
| 110 |
|
|
| 111 |
|
/// @brief The "Convert" interface Write function. |
| 113 |
|
/// Writes a single object |
| 114 |
|
/// Deletes the object after writing |
| 115 |
|
/// Returns false on error |
| 116 |
< |
virtual bool WriteChemObject(OBConversion* pConv) |
| 116 |
> |
virtual bool WriteChemObject(OBConversion* /*pConv*/) |
| 117 |
|
{ std::cerr << "Not a valid output format"; return false;} |
| 118 |
|
|
| 119 |
|
/// @brief Information on this format. Printed out in response to -Hxxx option where xxx id the id of the format. |
| 150 |
|
/// @brief Skip past first n objects in input stream (or current one with n=0) |
| 151 |
|
|
| 152 |
|
/// Returns 1 on success, -1 on error and 0 if not implemented |
| 153 |
< |
virtual int SkipObjects(int n, OBConversion* pConv) |
| 153 |
> |
virtual int SkipObjects(int /*n*/, OBConversion* /*pConv*/) |
| 154 |
|
{ |
| 155 |
|
return 0; //shows not implemented in the format class |
| 156 |
|
}; |
| 379 |
|
bool MoreFilesToCome; |
| 380 |
|
bool OneObjectOnly; |
| 381 |
|
bool ReadyToInput; |
| 382 |
+ |
bool CheckedForGzip; ///< input stream was already checked if it is gzip-encoded |
| 383 |
|
static int FormatFilesLoaded; |
| 384 |
|
OBBase* pOb1; |
| 385 |
|
std::streampos wInpos; ///<position in the input stream of the object being written |